Skip to content

Commit

Permalink
Auto merge of #77543 - Mark-Simulacrum:rsp-quoting, r=eddyb
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Oct 5, 2020
2 parents d890e64 + e8325b0 commit f317a93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/rustc_codegen_ssa/src/back/command.rs
Expand Up @@ -111,6 +111,12 @@ impl Command {
LldFlavor::Link => "link",
LldFlavor::Ld64 => "darwin",
});
if let LldFlavor::Wasm = flavor {
// LLVM expects host-specific formatting for @file
// arguments, but we always generate posix formatted files
// at this time. Indicate as such.
c.arg("--rsp-quoting=posix");
}
c
}
};
Expand Down

0 comments on commit f317a93

Please sign in to comment.