Skip to content

[SwiftSyntax] Avoid linking clangAST in SwiftSyntaxParserLib build #40762

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
merged 1 commit into from
Jan 11, 2022

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 7, 2022

printClangDeclName introduced another use of the clang AST in swiftAST, remove it by returning early if we are only building the parser library.

@ahoppen ahoppen requested a review from akyrtzi January 7, 2022 13:46
@ahoppen
Copy link
Member Author

ahoppen commented Jan 7, 2022

@swift-ci Please smoke test

@akyrtzi
Copy link
Contributor

akyrtzi commented Jan 11, 2022

Could we avoid linking clangAST by avoiding the call via #if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB?
See an example with this commit: 5c956ba

`printClangDeclName` introduced another use of the clang AST in `swiftAST`, remove it by returning early if we are only building the parser library.
@ahoppen ahoppen force-pushed the pr/build-clangast-for-parserlib branch from ef71739 to eecb741 Compare January 11, 2022 13:07
@ahoppen ahoppen changed the title [SwiftSyntax] Build clangAST when building the Swift Syntax Parser library [SwiftSyntax] Avoid linking clangAST in SwiftSyntaxParserLib build Jan 11, 2022
@ahoppen
Copy link
Member Author

ahoppen commented Jan 11, 2022

Yes, that’s definitely the cleaner solution.

@ahoppen
Copy link
Member Author

ahoppen commented Jan 11, 2022

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 11, 2022

@swift-ci Please smoke test Windows

@akyrtzi
Copy link
Contributor

akyrtzi commented Jan 11, 2022

Windows failure is unrelated.

@akyrtzi akyrtzi merged commit 55caa0d into swiftlang:main Jan 11, 2022
@ahoppen ahoppen deleted the pr/build-clangast-for-parserlib branch January 25, 2022 10:40
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