Skip to content
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

Add index-while-building support (back) to the Swift build rules #1248

Conversation

brentleyjones
Copy link
Collaborator

When the swift.index_while_building feature is set, targets will emit an indexstore directory to the "indexstore" output group.

Unlike the original implementation, this one is focused on the remote indexing use case, so we don't support the old behavior meant for local builds of scanning --swiftcopt for a manually-specified path that would be the destination for all index data. Users who want to do that should just pass all of the indexing flags to --swiftcopt instead of using this feature.

PiperOrigin-RevId: 459613898
(cherry picked from commit 8150427)


Cherry-pick notes: we never removed this. This is mainly just moving things around to make future cherry-picks easier. Though, we did take the --swiftcopt change by removing _is_index_store_path_overridden (which is a breaking change).

@brentleyjones brentleyjones force-pushed the bj/add-index-while-building-support-back-to-the-swift-build-rules branch from f9e672b to 1cda7e5 Compare June 21, 2024 13:09
When the `swift.index_while_building` feature is set, targets will emit an indexstore directory to the "indexstore" output group.

Unlike the original implementation, this one is focused on the remote indexing use case, so we don't support the old behavior meant for local builds of scanning `--swiftcopt` for a manually-specified path that would be the destination for all index data. Users who want to do that should just pass _all_ of the indexing flags to `--swiftcopt` instead of using this feature.

PiperOrigin-RevId: 459613898
(cherry picked from commit 8150427)

---

Cherry-pick notes: we never removed this. This is mainly just moving things around to make future cherry-picks easier. Though, we did take the `--swiftcopt` change by removing `_is_index_store_path_overridden` (which is a breaking change).

Signed-off-by: Brentley Jones <github@brentleyjones.com>
@brentleyjones brentleyjones force-pushed the bj/add-index-while-building-support-back-to-the-swift-build-rules branch from 1cda7e5 to 26058bc Compare June 21, 2024 13:16
@brentleyjones brentleyjones merged commit 359a3c1 into master Jun 21, 2024
14 checks passed
@brentleyjones brentleyjones deleted the bj/add-index-while-building-support-back-to-the-swift-build-rules branch June 21, 2024 14:08
brentleyjones referenced this pull request Jun 21, 2024
When the `swift.index_while_building` feature is set, targets will emit an indexstore directory to the "indexstore" output group.

Unlike the original implementation, this one is focused on the remote indexing use case, so we don't support the old behavior meant for local builds of scanning `--swiftcopt` for a manually-specified path that would be the destination for all index data. Users who want to do that should just pass _all_ of the indexing flags to `--swiftcopt` instead of using this feature.

PiperOrigin-RevId: 459613898
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