From 59b13486ce68e953745811810fa8aa7ec4a9a0db Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Mon, 5 Aug 2024 16:26:27 -0500 Subject: [PATCH] Fix emscripten as `os` rather than `env`. b7af6078 ("Switch to a target structure...") is checking whether the target environment is emscripten, but it seems emscripten is the OS. Fix this, which should resolve the issue in . --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 749a08a5..bbae9e28 100644 --- a/build.rs +++ b/build.rs @@ -55,7 +55,7 @@ fn main() { println!("cargo:rustc-cfg=feature=\"unstable\""); // Emscripten's runtime includes all the builtins - if target.env == "emscripten" { + if target.os == "emscripten" { return; }