about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back/command.rs
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-10-04 16:10:08 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2020-10-05 08:01:44 -0400
commite8325b0f40ab69c59e5c5a3233945d3df98e8abd (patch)
tree40ac7a2a9ed8bb0e3d0d660d9cfd4e66a8e70224 /compiler/rustc_codegen_ssa/src/back/command.rs
parenta835b483fe0418b48ca44afb65cd0dd6bad4eb9b (diff)
downloadrust-e8325b0f40ab69c59e5c5a3233945d3df98e8abd.tar.gz
rust-e8325b0f40ab69c59e5c5a3233945d3df98e8abd.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/command.rs')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/command.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/command.rs b/compiler/rustc_codegen_ssa/src/back/command.rs
index 0208bb73abd..503c51d24b6 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
             }
         };