Repository navigation
Add a IREE_ENABLE_CCACHE build option. OFF by default. - #3689
Conversation
| option(IREE_BUILD_EXPERIMENTAL "Builds experimental projects." OFF) | ||
| option(IREE_ENABLE_CCACHE "Use ccache if installed to speed up rebuilds." OFF) | ||
|
|
||
| if (${IREE_ENABLE_CCACHE}) |
There was a problem hiding this comment.
can you move if() down in the file to someplace else we set things like this? it's nice to have all the options a human needs to read up in one place at the top of the file so you don't have to go hunting for them
There was a problem hiding this comment.
Actually the options are already grouped in different sections, and I had the wrong section. Moved.
If enabled, this will try to detect ccache, and if found, CMake will be told to use it. No-op if ccache is not found.
|
Hey digging this old thing up. I'm looking to use
So, proposals:
|
|
Oh even better |
|
Re questions:
Re proposals +1 to everything you deem best. Thanks for caring about this issue, you know much more than me at this point! |
|
Sounds good, thanks :-) Just wanted to make sure I wasn't missing some background here |
This setting uses `RULE_LAUNCH_COMPILE` which is discouraged: https://cmake.org/cmake/help/latest/prop_gbl/RULE_LAUNCH_COMPILE.html. It's also unnecessary. As of CMake 3.4, the `CMAKE_<LANG>_COMPILER_LAUNCHER` can be used to set the compiler launcher per language. They can be set as a configuration option or via an environment variable. There's really no reason for us to have a project-specific configuration for this. While I was here, I made it an error if `IREE_ENABLE_CCACHE` is set and `ccache` is not found. This is an easy case where we can tell people to stop using it :-) See some discussion in #3689
Because I work across projects a lot, I end up using these env vars (or setting explicitly on the configure line) a lot. The only time I use the project specific ones are even I can't remember to spell the right one ;) |
If enabled, this will try to detect ccache, and if found, CMake will
be told to use it. No-op if ccache is not found.