]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Make sure to use right compiler for scan-build
authorAnders Björklund <anders@psqr.se>
Fri, 4 Nov 2016 06:26:07 +0000 (07:26 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 20 Feb 2017 21:35:33 +0000 (22:35 +0100)
.travis.yml
dev.mk.in

index 9a70beb74c430b8ae8b72c9860efa01fa638c679..13ef60a28082c7c3f7e6ccbf47b9648601b18073 100644 (file)
@@ -30,8 +30,8 @@ matrix:
           compiler: clang
           env: CFLAGS="-fsanitize=address -g" ASAN_OPTIONS="detect_leaks=0"
         - os: linux
-          compiler: /usr/bin/clang
-          env: TEST=analyze
+          compiler: clang
+          env: PATH="/usr/bin:$PATH" TEST=analyze
 
     exclude:
         - os: osx
index 0dae2d28f8ce84cfbf8cca1d7787a5ee3eb445d0..06deaaaa081a267edfdbe6af8feec8ffea567bcc 100644 (file)
--- a/dev.mk.in
+++ b/dev.mk.in
@@ -164,6 +164,7 @@ uncrustify:
 
 .PHONY: analyze
 analyze:
-       $(SCAN_BUILD) --status-bugs $(MAKE) -B -s
+       $(SCAN_BUILD) --use-cc=$(CC) ./configure
+       $(SCAN_BUILD) --use-cc=$(CC) --status-bugs $(MAKE) -B
 
 -include .deps/*.d