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

Don’t set SWIFT_BUILD_SCRIPT_ENVIRONMENT when building swift-format #630

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 15, 2023

Setting SWIFT_BUILD_SCRIPT_ENVIRONMENT entails that we e.g. enable assertions in swift-syntax, even in release mode, which we don’t want since the copy of swift-format that we include in the toolchain is also built using this script and shouldn’t have these swift-syntax’s assertions enabled, to improve performance.

Setting `SWIFT_BUILD_SCRIPT_ENVIRONMENT` entails that we e.g. enable assertions in swift-syntax, even in release mode, which we don’t want since the copy of swift-format that we include in the toolchain is also built using this script and shouldn’t have these swift-syntax’s assertions enabled, to improve performance.
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