rust-lang / compiler-builtins

Porting `compiler-rt` intrinsics to Rust
https://github.com/rust-lang/rust/issues/35437
Other
359 stars 207 forks source link

Fix emscripten as `os` rather than `env`. #658

Closed tgross35 closed 1 month ago

tgross35 commented 1 month ago

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.