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
<https://github.com/rust-lang/rust/pull/128691#issuecomment-2269933428>.
This commit is contained in:
Trevor Gross 2024-08-05 16:26:27 -05:00
parent 041e8a72d2
commit 5a4ccab866

View file

@ -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;
}