File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,6 @@ extension Driver {
49
49
mutating func linkJob( inputs: [ TypedVirtualPath ] ) throws -> Job {
50
50
var commandLine : [ Job . ArgTemplate ] = [ ]
51
51
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
-
61
52
// Compute the final output file
62
53
let outputFile : VirtualPath
63
54
if let output = parsedOptions. getLastArgument ( . o) {
Original file line number Diff line number Diff line change @@ -94,6 +94,13 @@ extension WindowsToolchain {
94
94
let clangTool : Tool = cxxCompatEnabled ? . clangxx : . clang
95
95
var clang = try getToolPath ( clangTool)
96
96
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
+
97
104
let targetTriple = targetInfo. target. triple
98
105
if !targetTriple. triple. isEmpty {
99
106
commandLine. appendFlag ( " -target " )
You can’t perform that action at this time.
0 commit comments