make it possible to select SCANBUILD binary on command line
This commit is contained in:
parent
1e5ff76b36
commit
a88c8fb438
4
Makefile
4
Makefile
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user