Skip to content

Commit

Permalink
Add wasm32 target arch using same emscripten platform
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiix committed Mar 2, 2019
1 parent 9ea2810 commit dad2ea4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/platform/emscripten/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg(target_os = "emscripten")]
#![cfg(any(target_os = "emscripten", target_arch = "wasm32"))]

mod ffi;

Expand Down
5 changes: 3 additions & 2 deletions src/platform/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ mod platform;
#[cfg(target_os = "ios")]
#[path="ios/mod.rs"]
mod platform;
#[cfg(target_os = "emscripten")]
#[cfg(any(target_os = "emscripten", target_arch = "wasm32"))]
#[path="emscripten/mod.rs"]
mod platform;

#[cfg(all(not(target_os = "ios"), not(target_os = "windows"), not(target_os = "linux"),
not(target_os = "macos"), not(target_os = "android"), not(target_os = "dragonfly"),
not(target_os = "freebsd"), not(target_os = "netbsd"), not(target_os = "openbsd"),
not(target_os = "emscripten")))]
not(target_os = "emscripten"),
not(target_arch = "wasm32")))]
compile_error!("The platform you're compiling for is not supported by winit");

0 comments on commit dad2ea4

Please sign in to comment.