From 9435ba4d7799ffd62dfadf9e2f1ecdc18121e7a8 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. --- src/librustc_codegen_ssa/back/command.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/librustc_codegen_ssa/back/command.rs b/src/librustc_codegen_ssa/back/command.rs index 0208bb73abdb..503c51d24b68 100644 --- a/src/librustc_codegen_ssa/back/command.rs +++ b/src/librustc_codegen_ssa/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 } };