-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[CMake] Give a dedicated component to compiler swift-syntax libraries #76497
[CMake] Give a dedicated component to compiler swift-syntax libraries #76497
Conversation
@@ -97,10 +98,10 @@ macro(swift_configure_components) | |||
set(SWIFT_INSTALL_COMPONENTS "${_SWIFT_DEFAULT_COMPONENTS}" CACHE STRING | |||
"A semicolon-separated list of components to install from the set ${_SWIFT_DEFINED_COMPONENTS}") | |||
|
|||
# 'compiler' depends on 'swift-syntax-lib' component. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess theoretically this could have been removed when we did the split 😅?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I totally forgot about this.
@swift-ci Please smoke test |
'compiler-swift-syntax-lib' so projects statically link to compiler libraries (libAST etc) can use the required shared libraries. rdar://135923606
998ce5b
to
38be0d3
Compare
@swift-ci Please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to change the caches for Windows.
@swift-ci please build toolchain Windows platform |
Pretty sure we're fine there?
|
So every |
@bnbarham oh, ewww ... you want to rely on the component being implicitly added? That sounds pretty ... scary |
🤷 I'm fine adding them explicitly. I'm just saying it should work as is. |
Since I found |
@swift-ci Please smoke test |
@swift-ci Please build toolchain Windows |
Some clients doesn't specify `swift-syntax-lib`.
@swift-ci Please smoke test |
@swift-ci Please build toolchain Windows |
) `swift_install_in_component` does not create a dependency between its `TARGETS` and the `COMPONENT`, so one has to be created manually. The missing dependency might cause invocations to CMake/Ninja for the `install-*` targets to not build the required files before the installation is performed. Because the normal `build-script` builds the `all` target, this kind of missing dependencies like this are common. This bit of code appeared in #76497 some days ago.
'compiler-swift-syntax-lib' so projects statically link to compiler libraries (libswiftAST etc) can use the required shared libraries.