Skip to content

Commit 3a7016a

Browse files
Merge pull request #1523 from kateinoigakukun/yt/wasm-llvm-tools
Prefer `llvm-ar` over `ar` on WebAssembly
2 parents 0da3ecf + fb6fc9c commit 3a7016a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/SwiftDriver/Toolchains/WebAssemblyToolchain.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ public final class WebAssemblyToolchain: Toolchain {
9595
switch tool {
9696
case .swiftCompiler:
9797
return try lookup(executable: "swift-frontend")
98-
case .staticLinker(nil):
99-
return try lookup(executable: "ar")
100-
case .staticLinker(.llvmFull),
101-
.staticLinker(.llvmThin):
98+
case .staticLinker:
10299
return try lookup(executable: "llvm-ar")
103100
case .dynamicLinker:
104101
// FIXME: This needs to look in the tools_directory first.

0 commit comments

Comments
 (0)