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:
parent
041e8a72d2
commit
5a4ccab866
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue