diff options
| author | bors <bors@rust-lang.org> | 2024-03-21 15:40:58 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-21 15:40:58 +0000 |
| commit | 7d01878bd0d1c4383c1158adeff0c392446ea3a2 (patch) | |
| tree | 837ff542c5f61fb0998d275271b44bd09d7964e3 /compiler/rustc_codegen_ssa/src/back/command.rs | |
| parent | 2627e9f3012a97d3136b3e11bf6bd0853c38a534 (diff) | |
| parent | 6b0a706cb4ce8114f7e082955cd3e53bdc0bc976 (diff) | |
| download | rust-7d01878bd0d1c4383c1158adeff0c392446ea3a2.tar.gz rust-7d01878bd0d1c4383c1158adeff0c392446ea3a2.zip | |
Auto merge of #122596 - rcxdude:master, r=petrochenkov
Use MSVC-style escaping when passing a response/@ file to lld on windows LLD parses @ files like the command arguments on the platform it's on, so on windows it needs to follow the MSVC style to work correctly. Otherwise builds can fail if the linker command gets too long and the build path contains spaces.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/command.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/command.rs | 6 |
1 files changed, 0 insertions, 6 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 } }; |
