File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ extension WindowsToolchain {
117
117
return . responseFilePath( input. file)
118
118
} else if input. type == . object {
119
119
return . path( input. file)
120
+ } else if lto != nil && input. type == . llvmBitcode {
121
+ return . path( input. file)
120
122
} else {
121
123
return nil
122
124
}
@@ -162,6 +164,15 @@ extension WindowsToolchain {
162
164
}
163
165
}
164
166
167
+ if let lto = lto {
168
+ switch lto {
169
+ case . llvmFull:
170
+ commandLine. appendFlag ( " -flto=full " )
171
+ case . llvmThin:
172
+ commandLine. appendFlag ( " -flto=thin " )
173
+ }
174
+ }
175
+
165
176
// Run clang++ in verbose mode if "-v" is set
166
177
try commandLine. appendLast ( . v, from: & parsedOptions)
167
178
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ extension WindowsToolchain {
137
137
case . illegalCrtName( let argument) :
138
138
return " \( argument) is not a valid C Runtime for Windows "
139
139
case . sdkNotFound:
140
- return " swift development on Windows always requires SDK of the target platform "
140
+ return " swift development on Windows always requires the SDK of target platform "
141
141
}
142
142
}
143
143
}
You can’t perform that action at this time.
0 commit comments