Skip to content

[CMake] Disable swift-cmake tests if tools are not being built #37829

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

Closed

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 8, 2021

The swift-cmake depends on swift-syntax-generated-headers which is only being built if the compiler (aka. SWIFT_INCLUDE_TOOLS) is being built. If a build only contains the stdlib, the test fails to configure. Disable it when SWIFT_INCLUDE_TOOLS is not true.

The `swift-cmake` depends on `swift-syntax-generated-headers` which is only being built if the compiler (aka. `SWIFT_INCLUDE_TOOLS`) is being built. If a build only contains the stdlib, the test fails to configure. Disable it when `SWIFT_INCLUDE_TOOLS` is not set.
@ahoppen ahoppen requested a review from gottesmm June 8, 2021 10:57
@ahoppen
Copy link
Member Author

ahoppen commented Jun 8, 2021

@swift-ci Please smoke test

@gottesmm
Copy link
Contributor

gottesmm commented Jun 8, 2021

@ahoppen It actually doesn't depend on that. I was just cargo cutting some cmake code. This is meant to test the host swiftc. If there is a host swiftc then we should build/test this.

@gottesmm
Copy link
Contributor

gottesmm commented Jun 8, 2021

I am fixing this in a different way here: #37838

@ahoppen
Copy link
Member Author

ahoppen commented Jun 9, 2021

OK, sounds good to me as well. Thanks for fixing it.

@ahoppen ahoppen closed this Jun 9, 2021
@ahoppen ahoppen deleted the pr/swift-cmake-test-stdlib-only-build branch July 5, 2021 09:18
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