make it possible to select SCANBUILD binary on command line

This commit is contained in:
Yann Collet 2020-10-01 23:27:02 -07:00
parent 1e5ff76b36
commit a88c8fb438
2 changed files with 4 additions and 2 deletions

View File

@ -151,9 +151,11 @@ usan: clean
usan32: clean usan32: clean
CFLAGS="-m32 -O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1 CFLAGS="-m32 -O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1
SCANBUILD ?= scan-build
SCANBUILD_FLAGS += --status-bugs -v --force-analyze-debug-code
.PHONY: staticAnalyze .PHONY: staticAnalyze
staticAnalyze: clean staticAnalyze: clean
CPPFLAGS=-DLZ4_DEBUG=1 CFLAGS=-g scan-build --status-bugs -v --force-analyze-debug-code $(MAKE) all V=1 DEBUGLEVEL=1 CPPFLAGS=-DLZ4_DEBUG=1 CFLAGS=-g $(SCANBUILD) $(SCANBUILD_FLAGS) $(MAKE) all V=1 DEBUGLEVEL=1
.PHONY: cppcheck .PHONY: cppcheck
cppcheck: cppcheck: