Skip to content

Commit e8325b0

Browse files
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.
1 parent a835b48 commit e8325b0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_codegen_ssa/src/back/command.rs

+6
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ impl Command {
111111
LldFlavor::Link => "link",
112112
LldFlavor::Ld64 => "darwin",
113113
});
114+
if let LldFlavor::Wasm = flavor {
115+
// LLVM expects host-specific formatting for @file
116+
// arguments, but we always generate posix formatted files
117+
// at this time. Indicate as such.
118+
c.arg("--rsp-quoting=posix");
119+
}
114120
c
115121
}
116122
};

0 commit comments

Comments
 (0)