Makefile: added variable SCANBUILD

so that a different version of scan-build can be selected
This commit is contained in:
Yann Collet committed 2018-08-16 16:44:13 -07:00
1 parent 1515f0bb0d
commit 36d6165a2d
5 files changed
+9 -4

No files matched your search

+2 -1
View File
@@ -352,7 +352,8 @@ bmi32build: clean
# static analyzer test uses clang's scan-build
# does not analyze zlibWrapper, due to detected issues in zlib source code
staticAnalyze: SCANBUILD ?= scan-build
staticAnalyze:
$(CC) -v
CC=$(CC) CPPFLAGS=-g scan-build --status-bugs -v $(MAKE) allzstd examples contrib
CC=$(CC) CPPFLAGS=-g $(SCANBUILD) --status-bugs -v $(MAKE) allzstd examples contrib
endif