Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 15, 2023

SWIFT_BUILD_SCRIPT_ENVIRONMENT should only be set when building swift-syntax. All other projects should be building swift-syntax without any swift-syntax-specific environment variables set.

Also remove SWIFT_SYNTAX_PARSER_LIB_SEARCH_PATH, which isn’t needed anymore since we re-wrote the parser in Swift and we no longer have the C++ parser library.

`SWIFT_BUILD_SCRIPT_ENVIRONMENT` should only be set when building swift-syntax. All other projects should be building swift-syntax without any swift-syntax-specific environment variables set.

Also remove `SWIFT_SYNTAX_PARSER_LIB_SEARCH_PATH`, which isn’t needed anymore since we re-wrote the parser in Swift and we no longer have the C++ parser library.
@ahoppen
Copy link
Member Author

ahoppen commented Sep 15, 2023

@swift-ci Please test

@ahoppen ahoppen requested a review from bnbarham September 15, 2023 21:53
Comment on lines -195 to -197
# Tell SwiftSyntax that we are building in a build-script environment so that
# it does not need to rebuilt if it has already been built before.
env['SWIFT_BUILD_SCRIPT_ENVIRONMENT'] = '1'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you removing this from all the build script helpers? Will it just be set in solely swift-syntax/SwiftSyntaxDevUtils now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and then I’ll probably rename it to something more descriptive. This used to be used to set --check-exclusivity=unchecked, which decreased compile time of swift-syntax by 2 minute at some point but that’s no longer the case.

@ahoppen ahoppen merged commit 3145839 into swiftlang:main Sep 16, 2023
@ahoppen ahoppen deleted the ahoppen/no-build-script-environment branch September 16, 2023 14: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