Skip to content

Check for the index workspace description rather than index arena #431

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

Conversation

bnbarham
Copy link
Contributor

There's various paths that should be specific to the index workspace description rather than if the index arena is enabled. Specifically the recent change to replace parameters for host tools (#345) broke the package description as it uses the passed in run destination rather than configuring for all platforms. This replacement would then create two configured targets for macOS for the same target (one for the given run destination and one for the macOS platform that the index uses).

This also changes the target description to only build for the run destination, which makes sense given its entire purpose is to be a replacement for the workspace description if it hasn't built yet (ie. it should be as fast as possible).

Resolves rdar://149896775.

@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham force-pushed the skip-param-replacement-for-package branch from f18351b to 58a11b9 Compare April 23, 2025 23:15
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham force-pushed the skip-param-replacement-for-package branch from 58a11b9 to ec3aa56 Compare April 25, 2025 23:10
@bnbarham
Copy link
Contributor Author

@swift-ci please test

There's various paths that should be specific to the index workspace
description rather than if the index arena is enabled. Specifically the
recent change to replace parameters for host tools
(swiftlang#345) broke the *package*
description as it uses the passed in run destination rather than
configuring for all platforms. This replacement would then create two
configured targets for macOS for the same target (one for the given run
destination and one for the macOS platform that the index uses).

This also changes the *target* description to only build for the run
destination, which makes sense given its entire purpose is to be a
replacement for the workspace description if it hasn't built yet (ie. it
should be as fast as possible).

Resolves rdar://149896775.
@bnbarham bnbarham force-pushed the skip-param-replacement-for-package branch from ec3aa56 to 1ca14af Compare April 26, 2025 00:47
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham
Copy link
Contributor Author

(just a bunch more test updates for tests using SDKs I didn't have locally)

@bnbarham bnbarham merged commit 0b4a664 into swiftlang:main Apr 28, 2025
3 checks passed
@bnbarham bnbarham deleted the skip-param-replacement-for-package branch April 28, 2025 20:04
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.

3 participants