File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,6 @@ extension Driver {
4949 mutating func linkJob( inputs: [ TypedVirtualPath ] ) throws -> Job {
5050 var commandLine : [ Job . ArgTemplate ] = [ ]
5151
52- #if os(Windows)
53- // We invoke clang as `clang.exe`, which expects a POSIX-style response file by default (`clang-cl.exe` expects
54- // Windows-style response files).
55- // The driver is outputting Windows-style response files because swift-frontend expects Windows-style response
56- // files.
57- // Force `clang.exe` into parsing Windows-style response files.
58- commandLine. appendFlag ( " --rsp-quoting=windows " )
59- #endif
60-
6152 // Compute the final output file
6253 let outputFile : VirtualPath
6354 if let output = parsedOptions. getLastArgument ( . o) {
Original file line number Diff line number Diff line change @@ -94,6 +94,13 @@ extension WindowsToolchain {
9494 let clangTool : Tool = cxxCompatEnabled ? . clangxx : . clang
9595 var clang = try getToolPath ( clangTool)
9696
97+ // We invoke clang as `clang.exe`, which expects a POSIX-style response file by default (`clang-cl.exe` expects
98+ // Windows-style response files).
99+ // The driver is outputting Windows-style response files because swift-frontend expects Windows-style response
100+ // files.
101+ // Force `clang.exe` into parsing Windows-style response files.
102+ commandLine. appendFlag ( " --rsp-quoting=windows " )
103+
97104 let targetTriple = targetInfo. target. triple
98105 if !targetTriple. triple. isEmpty {
99106 commandLine. appendFlag ( " -target " )
You can’t perform that action at this time.
0 commit comments