]> git.ipfire.org Git - thirdparty/ccache.git/commit
Improve speed of compiler launcher command in UseCcache.cmake
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 30 Jan 2021 18:17:33 +0000 (19:17 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 1 Feb 2021 19:16:22 +0000 (20:16 +0100)
commit68d8481c173eb711624232c8f9c8e4507d747dc9
tree6e988b880ea6b73f271ce5cddf18b188aaed98b0
parentd05cd8ccc77360602c1bf3e58881de7b9edac6e7
Improve speed of compiler launcher command in UseCcache.cmake

I noticed that the overhead of “cmake -E env” is around 9 ms on my
system. This means that ccache direct mode hits on average have become
twice as slow when building ccache itself on my system.

Improve this by using the standard “env” program if available. Its
overhead is around 1 ms.
cmake/UseCcache.cmake