Skip to content
Merged
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 @@ -50,9 +50,9 @@ extension GenericUnixToolchain {
case .executable:
// Select the linker to use.
if let arg = parsedOptions.getLastArgument(.useLd)?.asSingle {
commandLine.appendFlag("--fuse-ld=\(arg)")
commandLine.appendFlag("-fuse-ld=\(arg)")
} else if lto != nil {
commandLine.appendFlag("--fuse-ld=lld")
commandLine.appendFlag("-fuse-ld=lld")
}

if let arg = parsedOptions.getLastArgument(.ldPath)?.asSingle {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftDriverTests/SwiftDriverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,7 @@ final class SwiftDriverTests: XCTestCase {
let plannedJobs = try driver.planBuild().removingAutolinkExtractJobs()
let lastJob = plannedJobs.last!
XCTAssertTrue(lastJob.tool.name.contains("clang"))
XCTAssertTrue(lastJob.commandLine.contains(.flag("--fuse-ld=lld")))
XCTAssertTrue(lastJob.commandLine.contains(.flag("-fuse-ld=lld")))
}
}

Expand Down