Skip to content

Commit a810988

Browse files
committed
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 <rust-lang#128691 (comment)>.
1 parent 9c7ea34 commit a810988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-builtins/build.rs

Lines changed: 1 addition & 1 deletion
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)