Skip to content

Commit 7785cfe

Browse files
committed
build: remove bogus dependency on swift-driver
The `SwiftDriverTests` target should not depend on the `swift-driver` target. The latter is the executable binary. This was noticed when trying to port the swift-driver project to Windows. The Windows linker caught the fact that the `main` entry point was multiply defined, once from the test binary, and once from the `swift-driver` executable. Do not add the `swift-driver` to the dependency set as that will cause a link dependency, which results in the multiply defined symbols.
1 parent 607df61 commit 7785cfe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

[email protected]

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ let package = Package(
6969
/// Driver tests.
7070
.testTarget(
7171
name: "SwiftDriverTests",
72-
dependencies: ["SwiftDriver", "SwiftDriverExecution", "swift-driver",
73-
"TestUtilities"]),
72+
dependencies: ["SwiftDriver", "SwiftDriverExecution", "TestUtilities"]),
7473

7574
/// IncrementalImport tests
7675
.testTarget(

0 commit comments

Comments
 (0)