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

CLANG_BUILD_TOOLS=OFF still builds clang tools (though doesn't install them) #121060

Open
dustdfg opened this issue Dec 24, 2024 · 2 comments
Open
Labels
cmake Build system in general and CMake in particular

Comments

@dustdfg
Copy link

dustdfg commented Dec 24, 2024

Hello!

I need only clang without all additional tools. I pass CLANG_BUILD_TOOLS=OFF to CMake but it still builds the tools (It seems that they aren't added into the install dir though...) I've checked CMakeCache.txt and saw that when I pass CLANG_BUILD_TOOLS=OFF it is recognized and set to OFF but all other CLANG_TOOL_*_BUILD variables are still ON as by default. I have low-end hardware so when I use Full LTO I spend much time on each program. I've seen that it still builds them because time consumption is the same and I've seen in terminal Linking CXX executable bin/clang-import-test. I am running ninja install (if thats necessary information). I tried but couldn't find them inside build dir but they are built (and even there they are not saved? Though ninja doesn't rebuild them if I stop and start it again)

@github-actions github-actions bot added the clang Clang issues not falling into any other category label Dec 24, 2024
@EugeneZelenko EugeneZelenko added cmake Build system in general and CMake in particular and removed clang Clang issues not falling into any other category labels Dec 24, 2024
@Andarwinux
Copy link
Contributor

It's annoying, but at least you can find out all the cache variables and disable them one by one.

@dustdfg
Copy link
Author

dustdfg commented Dec 25, 2024

It's annoying, but at least you can find out all the cache variables and disable them one by one.

I did exactly it before found that variable and expected it will be a shortcut but unfortunately...

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

No branches or pull requests

3 participants