Instruct lld that our @ files are posix-style, not Windows

An upstream LLVM change changed behavior here to respect the host system quoting
rules; previously the posix-style format was always used for @files.
This commit is contained in:
Mark Rousskov 2020-10-04 16:10:08 -04:00
parent a835b483fe
commit e8325b0f40
1 changed files with 6 additions and 0 deletions

View File

@ -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
}
};