summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2017-12-28 23:06:19 +0200
committerJustin Worthe <justin@worthe-it.co.za>2017-12-28 23:06:19 +0200
commit452366b0abbae346b2beec761c910b72f3dd2fd6 (patch)
tree32202dcb26f4c9a76e7c4df02122d8a018e0c70c /src/main.rs
parentda50c0294696c3a327db4b2a0a089d7977df488e (diff)
Updated WASM build to use the new wasm32-unknown-unknown target
It's only in the nightly compiler at the moment.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index cfc5629..a05c2f7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,6 @@
extern crate rusty_microphone;
-#[cfg(not(target_os = "emscripten"))]
+#[cfg(not(target_arch = "wasm32"))]
fn main() {
use rusty_microphone::*;
@@ -11,7 +11,7 @@ fn main() {
}
}
-#[cfg(target_os = "emscripten")]
+#[cfg(target_arch = "wasm32")]
fn main() {
- println!("Hello Emscripten");
+ println!("Hello Wasm");
}