From e8325b0f40ab69c59e5c5a3233945d3df98e8abd Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sun, 4 Oct 2020 16:10:08 -0400 Subject: [PATCH] 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. --- compiler/rustc_codegen_ssa/src/back/command.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/rustc_codegen_ssa/src/back/command.rs b/compiler/rustc_codegen_ssa/src/back/command.rs index 0208bb73abdbe..503c51d24b682 100644 --- a/compiler/rustc_codegen_ssa/src/back/command.rs +++ b/compiler/rustc_codegen_ssa/src/back/command.rs @@ -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 } };