Skip to content

cmake: Fixes for using serenity's clang - #1642

Merged
alimpfard merged 2 commits into
SerenityOS:mainfrom
LucasChollet:cmake-fix
Aug 21, 2026
Merged

alimpfard merged 2 commits into
SerenityOS:mainfrom
LucasChollet:cmake-fix

Conversation

@LucasChollet

Copy link
Copy Markdown
Member

Follow up on #1639. First commit fixes a bug from the last PR (if (${SERENITY_SOURCE_DIR}) is incorrect in general and interacted weirdly with the option). Second commit, allows the installed binary to still access the serenity-build clang.

And define SERENITY_SOURCE_DIR as a cached variable rather than an
option. CMake's option() only support bools, the PATH argument we put in
there was interpreted as the help string.
This allows the final installed binary to have its RPATH correctly set
to the custom build libclang.
@alimpfard
alimpfard merged commit 14c980b into SerenityOS:main Aug 21, 2026
5 of 6 checks passed
@LucasChollet
LucasChollet deleted the cmake-fix branch August 21, 2026 12:02
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