Skip to content

build: remove bogus dependency on swift-driver #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Oct 3, 2021

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.

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.
@compnerd
Copy link
Member Author

compnerd commented Oct 3, 2021

CC: @CodaFi

@compnerd
Copy link
Member Author

compnerd commented Oct 3, 2021

@swift-ci please test

@compnerd compnerd merged commit c673072 into swiftlang:main Oct 4, 2021
@compnerd compnerd deleted the bogus-dependency branch October 4, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants