-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[NFC] Adding a message to indicate LLVM_CCACHE_BUILD's future deprecation #90624
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
base: main
Are you sure you want to change the base?
Conversation
ccache-swig
as the ccache
Binaryccache-swig
if ccache
cannot be found
ccache-swig
if ccache
cannot be foundccache-swig
if ccache
cannot be found
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.
LGTM
(one thing I note with this ccache support appears directly in llvm/CMakeList.txt
, that makes me think this doesn't work for runtimes. but I think that's out of scope for this PR)
I don't this we should add more stuff to LLVM_ENABLE_CCACHE. I think people should use CMAKE_C/CXX_COMPILER_LAUNCHER instead. |
Thanks for the tip. Reading the CMake docs that seems a reasonable solution. Should we make mention of this in https://github.com/llvm/llvm-project/blob/main/llvm/docs/CMake.rst and/or issue a message about this option being deprecated? Those docs are what originally led us down this path. |
Yes - I would welcome some documentation updates that points out the upstream solution and that the LLVM_ option is mainly kept around as a legacy thing. I tried to remove it a while ago but encountered push back, so I would avoid saying it's totally deprecated. cc @Endilll |
I'd like to second Tobias' feedback. On top of that, I think compiler launcher should be treated as a part of toolchain. That is, if present, it should be either set by user on the command line, or in a toolchain file. Notably, we shouldn't try to be smart about it after |
ccache-swig
if ccache
cannot be found
Thanks for your comments everyone! The PR is updated to only add a CMake message, and the documentation is updated to reflect our suggestion to use |
Ping for more comments. If there are none, I will land this PR soon. Thanks! |
This PR adds a message to indicate that
LLVM_CCACHE_BUILD
will be deprecated and suggests usingCMAKE_C_COMPILER_LAUNCHER
andCMAKE_CXX_COMPILER_LAUNCHER
.