From c91402efb9fc73167c1b048c8af1b094bae1f3f5 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Sat, 22 Jul 2023 18:31:40 +0200 Subject: [PATCH] Correctly detect that we don't support Emscripten (#2971) --- build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.