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 new swift.modular_indexing feature to index explicit PCMs #1331

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

brentleyjones
Copy link
Collaborator

This allows us to index explicit PCMs once they are built and then
never again. Currently we only do this for system SDKs as we assume
that we already have source code available for other SDKs, but this
can be expanded in the future.

In addition, make swift.file_prefix_map also remap DEVELOPER_DIR.

PiperOrigin-RevId: 478594522
(cherry picked from commit a5d5c2b)


Only add "index-unit-output-path" in the output map for modular indexing

Pre Xcode 14 you'll get a warning if this is specified without having indexing enabled:

<unknown>:0: warning: -index-unit-output-path is ignored without -index-store-path

We can reconsider this in the future (e.g. to automatically set this for Xcode 14+),
but for now limit the scope based on the modular indexing feature.

PiperOrigin-RevId: 480943677
(cherry picked from commit c9b5002)

brentleyjones referenced this pull request Oct 3, 2024
This allows us to index explicit PCMs once they are built and then
never again. Currently we only do this for system SDKs as we assume
that we already have source code available for other SDKs, but this
can be expanded in the future.

In addition, make swift.file_prefix_map also remap DEVELOPER_DIR.

PiperOrigin-RevId: 478594522
brentleyjones referenced this pull request Oct 3, 2024
Pre Xcode 14 you'll get a warning if this is specified without having indexing enabled:

```
<unknown>:0: warning: -index-unit-output-path is ignored without -index-store-path
```

We can reconsider this in the future (e.g. to automatically set this for Xcode 14+),
but for now limit the scope based on the modular indexing feature.

PiperOrigin-RevId: 480943677
@brentleyjones brentleyjones enabled auto-merge (rebase) October 3, 2024 15:23
This allows us to index explicit PCMs once they are built and then
never again. Currently we only do this for system SDKs as we assume
that we already have source code available for other SDKs, but this
can be expanded in the future.

In addition, make swift.file_prefix_map also remap DEVELOPER_DIR.

PiperOrigin-RevId: 478594522
(cherry picked from commit a5d5c2b)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
Pre Xcode 14 you'll get a warning if this is specified without having indexing enabled:

```
<unknown>:0: warning: -index-unit-output-path is ignored without -index-store-path
```

We can reconsider this in the future (e.g. to automatically set this for Xcode 14+),
but for now limit the scope based on the modular indexing feature.

PiperOrigin-RevId: 480943677
(cherry picked from commit c9b5002)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
@brentleyjones brentleyjones force-pushed the bj/swift.modular_indexing branch from 9d93662 to 8f871e9 Compare October 3, 2024 15:54
@brentleyjones brentleyjones merged commit b94f378 into master Oct 3, 2024
14 checks passed
@brentleyjones brentleyjones deleted the bj/swift.modular_indexing branch October 3, 2024 18:21
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