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 29f41f7 + 39dc648 commit 98e41d0Copy full SHA for 98e41d0
Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift
@@ -301,7 +301,12 @@ extension GenericUnixToolchain {
301
lto == nil ? $0.type == .object
302
: $0.type == .object || $0.type == .llvmBitcode
303
}.map { .path($0.file) })
304
- return try getToolPath(.staticLinker(lto))
+ if targetTriple.environment == .android {
305
+ // Always use the LTO archiver llvm-ar for Android
306
+ return try getToolPath(.staticLinker(.llvmFull))
307
+ } else {
308
+ return try getToolPath(.staticLinker(lto))
309
+ }
310
}
311
312
0 commit comments