Skip to content

Avoid building targets that are conditional on platform when building all #8568

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 3 commits into from
Apr 29, 2025

Conversation

cmcgee1024
Copy link
Member

When using the swiftbuild build system, and building all targets with a project
that contains a target that is depended on only when on a specific platform that
target should be skipped. Make the All(Excluding|Including)Tests generated
targets depend only on targets that are reachable from the roots through
dependencies that are either unconditional or are conditioned on the current
platform.

@cmcgee1024
Copy link
Member Author

@swift-ci please test

@cmcgee1024
Copy link
Member Author

@swift-ci please test

@cmcgee1024
Copy link
Member Author

@swift-ci test Windows

@cmcgee1024
Copy link
Member Author

@swift-ci please test

@cmcgee1024
Copy link
Member Author

@swift-ci test Windows

Copy link
Contributor

@jakepetroules jakepetroules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, that is surprisingly unintuitive... but it does appear to match the current behavior (I had to check to make sure I was understanding correctly what's happening).

@cmcgee1024 cmcgee1024 merged commit 6965245 into swiftlang:main Apr 29, 2025
6 checks passed
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