We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4166da commit 2106434Copy full SHA for 2106434
src/bootstrap/src/utils/helpers.rs
@@ -473,6 +473,14 @@ pub fn linker_flags(
473
// cfg(bootstrap) - remove after updating bootstrap compiler (#137498)
474
if stage == 0 && target.is_windows() {
475
args.push("-Clink-arg=-fuse-ld=lld".to_string());
476
+ } else if target.starts_with("wasm") {
477
+ if target.ends_with("unknown") || target.ends_with("none") {
478
+ args.push("-Clinker-flavor=wasm-lld".to_string());
479
+ } else if target.ends_with("emscripten") {
480
+ args.push("-Clinker-flavor=em-cc".to_string());
481
+ } else {
482
+ args.push("-Clinker-flavor=wasm-lld-cc".to_string());
483
+ }
484
} else {
485
args.push("-Clinker-flavor=gnu-lld-cc".to_string());
486
}
0 commit comments