diff options
author | Josh Stone <jistone@redhat.com> | 2009-04-02 12:16:12 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-04-02 12:28:21 -0700 |
commit | b51455af34a99768cc3a6ce50b251132f5fe752e (patch) | |
tree | 66a7c70de2561d1685e6ea50e3c61bf112dd9fc9 | |
parent | a7d25c487ad74dc60bbbd93a2f689e0f0a047273 (diff) | |
download | systemtap-steved-b51455af34a99768cc3a6ce50b251132f5fe752e.tar.gz systemtap-steved-b51455af34a99768cc3a6ce50b251132f5fe752e.tar.xz systemtap-steved-b51455af34a99768cc3a6ce50b251132f5fe752e.zip |
Disable ccache during kernel module builds
Our module builds always have a 0% ccache hit rate, because the compiler
commands always include the randomized tmpdir. Thus, I'm setting
CCACHE_DISABLE=1 so ccache never saves these one-use objects.
(Besides, we already have our own caching in place for this stuff...)
-rw-r--r-- | buildrun.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx index 71a34c96..bcd4c1fe 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -48,6 +48,12 @@ run_make_cmd(systemtap_session& s, string& make_cmd) cerr << "unsetenv failed: " << e << endl; } + // Disable ccache to avoid saving files that will never be reused. + // (ccache is useless to us, because our compiler commands always + // include the randomized tmpdir path.) + // It's not critical if this fails, so the return is ignored. + (void) setenv("CCACHE_DISABLE", "1", 0); + if (s.verbose > 2) make_cmd += " V=1"; else if (s.verbose > 1) |