Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ package struct LinuxRecipe: SwiftSDKRecipe {
toolset.swiftCompiler = Toolset.ToolProperties(extraCLIOptions: swiftCompilerOptions)

toolset.cxxCompiler = Toolset.ToolProperties(extraCLIOptions: ["-lstdc++"])
toolset.librarian = Toolset.ToolProperties(path: "llvm-ar")

// Don't include path to librarian if we're using the preinstalled toolchain
// Workaround for https://github.com/swiftlang/swift-package-manager/issues/9035
if self.hostSwiftSource != .preinstalled {
toolset.librarian = Toolset.ToolProperties(path: "llvm-ar")
}
}

package func applyPlatformOptions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ final class LinuxRecipeTests: XCTestCase {
]
)
XCTAssertEqual(toolset.cxxCompiler?.extraCLIOptions, ["-lstdc++"])
XCTAssertEqual(toolset.librarian?.path, "llvm-ar")
XCTAssert(toolset.librarian == nil)
XCTAssert(toolset.linker == nil)
}

Expand Down