Skip to content

Commit

Permalink
Instruct lld that our @ files are posix-style, not Windows
Browse files Browse the repository at this point in the history
An upstream LLVM change changed behavior here to respect the host system quoting
rules; previously the posix-style format was always used for @files.
  • Loading branch information
Mark-Simulacrum committed Oct 5, 2020
1 parent a835b48 commit e8325b0
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 e8325b0

Please sign in to comment.