Skip to content

Commit 6b0a706

Browse files
committed
Update comment and remove special-case for Wasm targets which is incompatible with response-file changes
1 parent 7c98b82 commit 6b0a706

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

compiler/rustc_codegen_ssa/src/back/command.rs

-6
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ impl Command {
100100
Program::Lld(ref p, flavor) => {
101101
let mut c = process::Command::new(p);
102102
c.arg("-flavor").arg(flavor.as_str());
103-
if let LldFlavor::Wasm = flavor {
104-
// LLVM expects host-specific formatting for @file
105-
// arguments, but we always generate posix formatted files
106-
// at this time. Indicate as such.
107-
c.arg("--rsp-quoting=posix");
108-
}
109103
c
110104
}
111105
};

compiler/rustc_codegen_ssa/src/back/link.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ fn exec_linker(
16091609
args.push_str(
16101610
&Escape {
16111611
arg: arg.to_str().unwrap(),
1612-
// LLD also uses MSVC-like parsing for @-files on windows
1612+
// LLD also uses MSVC-like parsing for @-files by default when running on windows hosts
16131613
is_like_msvc: sess.target.is_like_msvc || (cfg!(windows) && flavor.uses_lld()),
16141614
}
16151615
.to_string(),

0 commit comments

Comments
 (0)