Skip to content

Commit ccc179c

Browse files
committed
Update SwiftDriverTests.swift
Add missing `-` when forwarding as `--ld-path`
1 parent a337984 commit ccc179c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ final class SwiftDriverTests: XCTestCase {
16911691
let cmd = linkJob.commandLine
16921692
XCTAssertTrue(cmd.contains(.flag("-dynamiclib")))
16931693
XCTAssertTrue(cmd.contains(.flag("-fuse-ld=foo")))
1694-
XCTAssertTrue(cmd.contains(.joinedOptionAndPath("-ld-path=", try VirtualPath(path: "/bar/baz"))))
1694+
XCTAssertTrue(cmd.contains(.joinedOptionAndPath("--ld-path=", try VirtualPath(path: "/bar/baz"))))
16951695
XCTAssertTrue(cmd.contains(.flag("--target=x86_64-apple-macosx10.15")))
16961696
XCTAssertEqual(linkJob.outputs[0].file, try VirtualPath(path: "libTest.dylib"))
16971697

0 commit comments

Comments
 (0)