Commit cb9ebcf
authored
Stop adding link-native-libraries flag by default in Emscripten platform in latest Rust (#2991)
The problem with rust trying to link libc was fixed in
rust-lang/libc#4002, and this flag is not needed
anymore for recent rust versions.
Always adding this flag is preventing from using the stable Rust
toolchain as `-Z` flag can only be used with the nightly toolchains.
From Rust 1.93.0, it is possible to use stable toolchain to build to
Emscripten target, so this PR removes this flag for Rust >= 1.93.0
cc: @hoodmane1 parent a5a85f0 commit cb9ebcf
2 files changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
253 | 258 | | |
254 | | - | |
| 259 | + | |
255 | 260 | | |
256 | 261 | | |
257 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments