Skip to content

Commit c91402e

Browse files
authored
Correctly detect that we don't support Emscripten (rust-windowing#2971)
1 parent 43acf7f commit c91402e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ fn main() {
88
cfg_aliases! {
99
// Systems.
1010
android_platform: { target_os = "android" },
11-
wasm_platform: { target_family = "wasm" },
11+
wasm_platform: { all(target_family = "wasm", not(target_os = "emscripten")) },
1212
macos_platform: { target_os = "macos" },
1313
ios_platform: { target_os = "ios" },
1414
windows_platform: { target_os = "windows" },
1515
apple: { any(target_os = "ios", target_os = "macos") },
16-
free_unix: { all(unix, not(apple), not(android_platform)) },
16+
free_unix: { all(unix, not(apple), not(android_platform), not(target_os = "emscripten")) },
1717
redox: { target_os = "redox" },
1818

1919
// Native displays.

0 commit comments

Comments
 (0)