ccache in CI
#26
(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.
Reply
Thanks given by:


Messages In This Thread
ccache in CI - by LogicParrot - 01-27-2016, 05:15 PM
RE: ccache in CI - by xoft - 01-27-2016, 09:13 PM
RE: ccache in CI - by LogicParrot - 01-28-2016, 01:07 AM
RE: ccache in CI - by LogicParrot - 01-28-2016, 01:49 AM
RE: ccache in CI - by LogicParrot - 01-28-2016, 03:04 AM
RE: ccache in CI - by worktycho - 01-28-2016, 04:35 AM
RE: ccache in CI - by LogicParrot - 01-28-2016, 06:22 AM
RE: ccache in CI - by worktycho - 01-28-2016, 08:14 AM
RE: ccache in CI - by LogicParrot - 02-04-2016, 07:13 AM
RE: ccache in CI - by bearbin - 02-05-2016, 05:29 AM
RE: ccache in CI - by LogicParrot - 02-05-2016, 06:03 AM
RE: ccache in CI - by bearbin - 02-05-2016, 07:32 AM
RE: ccache in CI - by LogicParrot - 02-05-2016, 08:20 AM
RE: ccache in CI - by LogicParrot - 02-05-2016, 09:38 PM
RE: ccache in CI - by bearbin - 02-06-2016, 02:32 AM
RE: ccache in CI - by bearbin - 02-06-2016, 02:56 AM
RE: ccache in CI - by LogicParrot - 02-06-2016, 04:02 AM
RE: ccache in CI - by bearbin - 02-06-2016, 04:58 AM
RE: ccache in CI - by LogicParrot - 02-06-2016, 08:26 AM
RE: ccache in CI - by bearbin - 02-06-2016, 07:07 PM
RE: ccache in CI - by bearbin - 02-06-2016, 09:13 PM
RE: ccache in CI - by LogicParrot - 02-07-2016, 01:34 AM
RE: ccache in CI - by bearbin - 02-07-2016, 02:56 AM
RE: ccache in CI - by LogicParrot - 02-07-2016, 08:19 AM
RE: ccache in CI - by bearbin - 02-07-2016, 07:49 PM
RE: ccache in CI - by LogicParrot - 02-07-2016, 08:45 PM
RE: ccache in CI - by bearbin - 02-08-2016, 03:05 AM
RE: ccache in CI - by LogicParrot - 02-08-2016, 04:50 AM
RE: ccache in CI - by bearbin - 02-14-2016, 01:34 AM
RE: ccache in CI - by LogicParrot - 02-14-2016, 06:10 PM
RE: ccache in CI - by bearbin - 02-14-2016, 10:08 PM
RE: ccache in CI - by LogicParrot - 02-14-2016, 11:22 PM



Users browsing this thread: 4 Guest(s)