Skip to content

Commit 39a7e5f

Browse files
committed
Also check rust.default-linker
1 parent 4b44cd4 commit 39a7e5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,9 @@ impl Config {
863863

864864
let mut target = Target::from_triple(&triple);
865865

866-
if target_default_linker.is_some() && target_default_linker_linux.is_some() {
866+
if (target_default_linker.is_some() || rust_default_linker.is_some())
867+
&& target_default_linker_linux.is_some()
868+
{
867869
panic!(
868870
"cannot set both `default-linker` and `default-linker-linux` for target {triple}"
869871
);

0 commit comments

Comments
 (0)