Skip to content

Commit 23522e4

Browse files
committed
TMP: workaround lack of LLVM'd lld support for --version-script
This option isn't supported when creating COFF objects
1 parent 2ded197 commit 23522e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_codegen_ssa/back/linker.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ impl<'a> Linker for GccLinker<'a> {
404404
// Symbol visibility takes care of this for the WebAssembly.
405405
// Additionally the only known linker, LLD, doesn't support the script
406406
// arguments just yet
407-
if self.sess.target.target.arch == "wasm32" {
407+
if self.sess.target.target.arch == "wasm32" ||
408+
self.sess.target.target.target_os == "uwp" {
408409
return;
409410
}
410411

0 commit comments

Comments
 (0)