We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c673072 + c081c9b commit ce62988Copy full SHA for ce62988
Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift
@@ -297,8 +297,10 @@ extension GenericUnixToolchain {
297
commandLine.appendFlag("crs")
298
commandLine.appendPath(outputFile)
299
300
- commandLine.append(contentsOf: inputs.filter { $0.type == .object }
301
- .map { .path($0.file) })
+ commandLine.append(contentsOf: inputs.lazy.filter {
+ lto == nil ? $0.type == .object
302
+ : $0.type == .object || $0.type == .llvmBitcode
303
+ }.map { .path($0.file) })
304
return try getToolPath(.staticLinker(lto))
305
}
306
0 commit comments