Skip to content

Ignore prebuilt module cache when building the prebuilt module cache #1650

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

DougGregor
Copy link
Member

@DougGregor DougGregor commented Jul 6, 2024

Explanation: When building modules for an SDK, we need to ignore any existing prebuilt modules to avoid building a partial prebuilt module cache. Make sure we do ignore them by passing down an intentionally-bogus path for the existing prebuilt module cache.
Scope: Prebuilt module cache generation logic only, very narrow.
Risk: Very low due to narrow scope.
Testing: Passes current test suite.
Main PR: #1649
Issue: rdar://131183526

When building modules for an SDK, we need to ignore any existing prebuilt
modules to avoid building a partial prebult module cache. Do so by passing
an intentially-bad path for the prebuilt module cache path that's derived
from the output path (but not the same as that path). This prohibits the
frontend scanning job from adding the default prebuilt module cache path,
while ensuring that we find no prebuilt modules.

Fixes rdar://131183526.
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 4b5ffac into swiftlang:release/6.0 Jul 7, 2024
3 checks passed
@DougGregor DougGregor deleted the ignore-prebuilt-in-prebuilt-6.0 branch July 7, 2024 02:35
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