diff --git a/build.rs b/build.rs index 00d706d3..7d83d771 100644 --- a/build.rs +++ b/build.rs @@ -8,12 +8,12 @@ fn main() { cfg_aliases! { // Systems. android_platform: { target_os = "android" }, - wasm_platform: { target_family = "wasm" }, + wasm_platform: { all(target_family = "wasm", not(target_os = "emscripten")) }, macos_platform: { target_os = "macos" }, ios_platform: { target_os = "ios" }, windows_platform: { target_os = "windows" }, apple: { any(target_os = "ios", target_os = "macos") }, - free_unix: { all(unix, not(apple), not(android_platform)) }, + free_unix: { all(unix, not(apple), not(android_platform), not(target_os = "emscripten")) }, redox: { target_os = "redox" }, // Native displays.