c linker: pass -Xlinker -z -Xlinker muldefs only on Linux with -cache

pull/4349/head
Delyan Angelov 2020-04-11 15:24:00 +03:00
parent c1aba95d7d
commit 30714d16d9
1 changed files with 3 additions and 1 deletions

View File

@ -317,7 +317,9 @@ fn (v mut Builder) cc() {
}
}
if !is_cc_tcc {
a << '-Xlinker -z -Xlinker muldefs'
$if linux {
a << '-Xlinker -z -Xlinker muldefs'
}
}
}