Skip to content

Commit 2c1ddf5

Browse files
cmcgee1024jakepetroules
authored andcommitted
Remove ALTERNATE_LINKER build setting when building for Windows
The default linker for Windows in swift-build is now lld-link so this is no longer neeeded.
1 parent b639ce4 commit 2c1ddf5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/SwiftBuildSupport/SwiftBuildSystem.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,6 @@ public final class SwiftBuildSystem: SPMBuildCore.BuildSystem {
433433
// Always specify the path of the effective Swift compiler, which was determined in the same way as for the
434434
// native build system.
435435
settings["SWIFT_EXEC"] = buildParameters.toolchain.swiftCompilerPath.pathString
436-
// Use lld linker instead of Visual Studio link.exe when targeting Windows
437-
if buildParameters.triple.isWindows() {
438-
settings["ALTERNATE_LINKER"] = "lld-link"
439-
}
440436
// FIXME: workaround for old Xcode installations such as what is in CI
441437
settings["LM_SKIP_METADATA_EXTRACTION"] = "YES"
442438

0 commit comments

Comments
 (0)