Skip to content

Commit 59b1348

Browse files
committed
Fix emscripten as os rather than env.
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)>.
1 parent e7341d5 commit 59b1348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn main() {
5555
println!("cargo:rustc-cfg=feature=\"unstable\"");
5656

5757
// Emscripten's runtime includes all the builtins
58-
if target.env == "emscripten" {
58+
if target.os == "emscripten" {
5959
return;
6060
}
6161

0 commit comments

Comments
 (0)