Skip to content

Commit ee901f3

Browse files
committed
bootstrap: Do don't pass linker-flavor flag for wasm targets
LinkerFlavor::WasmLld is the only supported link flavor for wasm.
1 parent a4166da commit ee901f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/src/utils/helpers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ pub fn linker_flags(
473473
// cfg(bootstrap) - remove after updating bootstrap compiler (#137498)
474474
if stage == 0 && target.is_windows() {
475475
args.push("-Clink-arg=-fuse-ld=lld".to_string());
476+
} else if target.starts_with("wasm") {
477+
// wasm-ld is the only available linker for wasm targets.
476478
} else {
477479
args.push("-Clinker-flavor=gnu-lld-cc".to_string());
478480
}

0 commit comments

Comments
 (0)