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

utils: adjust the -Clean option to clean before execution #78933

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

compnerd
Copy link
Member

This hoists the cleaning to prior to building the toolchain. This is particularly important as changes in the module format may cause the compiler to crash. Due to the use of Swift in the Swift compiler, we load modules early and a previous run may have left over modules from the last run, which would result in the module attempting to be loaded. This cleans out the extra modules before the toolchain build avoiding that.

This hoists the cleaning to prior to building the toolchain. This is
particularly important as changes in the module format may cause the
compiler to crash. Due to the use of Swift in the Swift compiler, we
load modules early and a previous run may have left over modules from
the last run, which would result in the module attempting to be loaded.
This cleans out the extra modules before the toolchain build avoiding
that.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test macOS platform

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please smoke test macOS platform

@compnerd compnerd merged commit 0944fa4 into swiftlang:main Jan 27, 2025
3 checks passed
@compnerd compnerd deleted the cleanliness-and-order branch January 27, 2025 16:43
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.

1 participant