Skip to content

Commit f317a93

Browse files
committedOct 5, 2020
Auto merge of #77543 - Mark-Simulacrum:rsp-quoting, r=eddyb
Force posix-style quoting on lld, independent of host platform This just blindly applies the logic from `@eddyb's` comment here: #76466 (comment) Hopefully, this fixed #76466 -- I cannot test this though.
2 parents d890e64 + e8325b0 commit f317a93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎compiler/rustc_codegen_ssa/src/back/command.rs

+6
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ impl Command {
111111
LldFlavor::Link => "link",
112112
LldFlavor::Ld64 => "darwin",
113113
});
114+
if let LldFlavor::Wasm = flavor {
115+
// LLVM expects host-specific formatting for @file
116+
// arguments, but we always generate posix formatted files
117+
// at this time. Indicate as such.
118+
c.arg("--rsp-quoting=posix");
119+
}
114120
c
115121
}
116122
};

0 commit comments

Comments
 (0)