diff options
| author | Douglas Young <rcxdude@gmail.com> | 2024-03-20 23:37:46 +0000 |
|---|---|---|
| committer | Douglas Young <rcxdude@gmail.com> | 2024-03-20 23:38:15 +0000 |
| commit | 6b0a706cb4ce8114f7e082955cd3e53bdc0bc976 (patch) | |
| tree | 484d35da8d315b87082fa3fba8f61a16498f0f99 | |
| parent | 7c98b8293071cf1fce594e7f911410d8f906269f (diff) | |
| download | rust-6b0a706cb4ce8114f7e082955cd3e53bdc0bc976.tar.gz rust-6b0a706cb4ce8114f7e082955cd3e53bdc0bc976.zip | |
Update comment and remove special-case for Wasm targets which is incompatible with response-file changes
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/command.rs | 6 | ||||
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/command.rs b/compiler/rustc_codegen_ssa/src/back/command.rs index 9b0ba34135c..3a89be89951 100644 --- a/compiler/rustc_codegen_ssa/src/back/command.rs +++ b/compiler/rustc_codegen_ssa/src/back/command.rs @@ -100,12 +100,6 @@ impl Command { Program::Lld(ref p, flavor) => { let mut c = process::Command::new(p); c.arg("-flavor").arg(flavor.as_str()); - 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 } }; diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index cdd68331e0f..c8b8594c0dd 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -1609,7 +1609,7 @@ fn exec_linker( args.push_str( &Escape { arg: arg.to_str().unwrap(), - // LLD also uses MSVC-like parsing for @-files on windows + // LLD also uses MSVC-like parsing for @-files by default when running on windows hosts is_like_msvc: sess.target.is_like_msvc || (cfg!(windows) && flavor.uses_lld()), } .to_string(), |
