02-07-2016, 08:45 PM
(This post was last modified: 02-07-2016, 08:45 PM by LogicParrot.)
(02-07-2016, 07:49 PM)bearbin Wrote: How would that help? It's not a "magic directory", so what would that command actually do?
It makes ccache masquerade as the compiler. So now when cmake calls "clang", it actually just calls a symlink to ccache. ccache then detects that it's being invoked via a symlink called "clang", so it passes all compilation arguments that it receives to /bin/clang.
Yes, /usr/lib/ccache is not magic, you could have done this with any directory. It happens to be the default masqueradation directory in Debian.
See the first run mode in the manual for more info.