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

[cmake] Pass -resource-dir to external projects as CMAKE_<LANG>_FLAGS_INIT instead of as a force override #87330

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

tambry
Copy link
Contributor

@tambry tambry commented Apr 2, 2024

It's useful to use toolchain files for configuring runtimes builds. Setting CMAKE_<LANG>_FLAGS is however forceful and precludes initialization from the _INIT variant meant to be set by toolchains. The toolchain file still needs to append instead of just setting and be idempotent (include_guard()), but this way at least a special toolchain to account for LLVM's won't be required.

@tambry tambry added the cmake Build system in general and CMake in particular label Apr 2, 2024
@tambry tambry requested a review from petrhosek April 2, 2024 10:48
@tambry tambry self-assigned this Apr 2, 2024
…_INIT instead of as a force override

It's useful to use toolchain files for configuring runtimes builds.
Setting CMAKE_<LANG>_FLAGS is however forceful and precludes initialization from the _INIT variant meant to be set by toolchains.
The toolchain file still needs to append instead of just setting and be idempotent (`include_guard()`), but this way at least a special toolchain to account for LLVM's won't be required.
@tambry
Copy link
Contributor Author

tambry commented Jun 3, 2024

Ping.
There doesn't really seem to be anyone equivalently qualified as you two and I'd rather not just have this rubberstamped.

@tambry tambry merged commit ffec63b into llvm:main Jun 3, 2024
4 checks passed
@tambry tambry deleted the external_flags_init branch June 3, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Build system in general and CMake in particular
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants