about summary refs log tree commit diff
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 12:13:35 -0400
commit9435ba4d7799ffd62dfadf9e2f1ecdc18121e7a8 (patch)
tree4530103775cbc0d68b753c43b27e538a4b9e5bba
parent2d8cf77c3c4163e5a2ed5fad539acf7043a66ac5 (diff)
downloadrust-9435ba4d7799ffd62dfadf9e2f1ecdc18121e7a8.tar.gz
rust-9435ba4d7799ffd62dfadf9e2f1ecdc18121e7a8.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.
-rw-r--r--src/librustc_codegen_ssa/back/command.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_codegen_ssa/back/command.rs b/src/librustc_codegen_ssa/back/command.rs
index 0208bb73abd..503c51d24b6 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
             }
         };