Skip to content

Commit

Permalink
Fix emscripten as os rather than env.
Browse files Browse the repository at this point in the history
b7af607 ("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
<rust-lang/rust#128691 (comment)>.
  • Loading branch information
tgross35 committed Aug 5, 2024
1 parent e7341d5 commit 59b1348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 59b1348

Please sign in to comment.