aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-01 08:46:33 -0400
committerJack Lloyd <[email protected]>2017-10-01 08:46:33 -0400
commit3327354d31ec614e27aa66f0cddb96f1054ad728 (patch)
tree5d7772c42b82350cb1b7406122f639c8c333de8e
parent131c367ef728043feaa70d994c3f1ec6a1b00e1b (diff)
Ugh, disable ccache on Sonar build
It seems ccache doesn't handle -fprofile-instr-generate correctly.
-rwxr-xr-xsrc/scripts/ci_build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py
index 2194c0c4b..9c68d553f 100755
--- a/src/scripts/ci_build.py
+++ b/src/scripts/ci_build.py
@@ -323,8 +323,8 @@ def main(args=None):
return 1
if options.compiler_cache is None and options.cc != 'msvc':
- # Autodetect ccache
- if have_prog('ccache'):
+ # Autodetect ccache, unless using clang profiling - ccache seems to misbehave there
+ if have_prog('ccache') and target not in ['sonar']:
options.compiler_cache = 'ccache'
if options.compiler_cache == 'clcache' and target in ['sanitizer']: