Skip to content

[cmake] Add missing dependency between component and its targets #76596

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

Conversation

drodriguez
Copy link
Contributor

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.

`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 swiftlang#76497 some days ago.
@drodriguez drodriguez requested a review from rintaro September 20, 2024 04:18
@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@drodriguez drodriguez enabled auto-merge (squash) September 20, 2024 04:18
@drodriguez drodriguez merged commit d3b788f into swiftlang:main Sep 20, 2024
3 checks passed
@drodriguez drodriguez deleted the add-dependency-compiler-swift-syntax-lib branch September 20, 2024 15:20
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