summaryrefslogtreecommitdiff
path: root/src/lib.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/lib.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/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c2b73d1..f778f3b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,18 +3,18 @@ pub mod signal;
pub mod correlation;
pub mod pitch;
-#[cfg(not(target_os = "emscripten"))]
+#[cfg(not(target_arch = "wasm32"))]
extern crate gtk;
-#[cfg(not(target_os = "emscripten"))]
+#[cfg(not(target_arch = "wasm32"))]
extern crate cairo;
-#[cfg(not(target_os = "emscripten"))]
+#[cfg(not(target_arch = "wasm32"))]
pub mod gui;
-#[cfg(not(target_os = "emscripten"))]
+#[cfg(not(target_arch = "wasm32"))]
extern crate portaudio;
-#[cfg(not(target_os = "emscripten"))]
+#[cfg(not(target_arch = "wasm32"))]
pub mod audio;
-#[cfg(target_os = "emscripten")]
+#[cfg(target_arch = "wasm32")]
pub mod emscripten_api;