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.
1 parent a0f6c54 commit bdc3a80Copy full SHA for bdc3a80
Sources/SwiftSDKGenerator/SwiftSDKRecipes/LinuxRecipe.swift
@@ -143,7 +143,12 @@ package struct LinuxRecipe: SwiftSDKRecipe {
143
toolset.swiftCompiler = Toolset.ToolProperties(extraCLIOptions: swiftCompilerOptions)
144
145
toolset.cxxCompiler = Toolset.ToolProperties(extraCLIOptions: ["-lstdc++"])
146
- toolset.librarian = Toolset.ToolProperties(path: "llvm-ar")
+
147
+ // Don't include path to librarian if we're using the preinstalled toolchain
148
+ // Workaround for https://github.com/swiftlang/swift-package-manager/issues/9035
149
+ if self.hostSwiftSource != .preinstalled {
150
+ toolset.librarian = Toolset.ToolProperties(path: "llvm-ar")
151
+ }
152
}
153
154
package func applyPlatformOptions(
0 commit comments