mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2025-02-26 01:36:02 +00:00
SCANBUILD can be defined before calling make staticAnalyze
This commit is contained in:
parent
e9b91102eb
commit
2745060950
7
Makefile
7
Makefile
@ -228,9 +228,10 @@ usan: ## check CLI runtime for undefined behavior, using clang's sanitizer
|
||||
$(MAKE) test CC=$(CC) MOREFLAGS="-g -fsanitize=undefined -fno-sanitize-recover=all"
|
||||
|
||||
.PHONY: staticAnalyze
|
||||
staticAnalyze: clean ## check C source files using scan-build static analyzer
|
||||
@echo ---- static analyzer - scan-build ----
|
||||
CFLAGS="-g -Werror" scan-build --status-bugs -v $(MAKE) all
|
||||
SCANBUILD = scan-build
|
||||
staticAnalyze: clean ## check C source files using $(SCANBUILD) static analyzer
|
||||
@echo ---- static analyzer - $(SCANBUILD) ----
|
||||
CFLAGS="-g -Werror" $(SCANBUILD) --status-bugs -v $(MAKE) all
|
||||
|
||||
CPPCHECK = cppcheck
|
||||
.PHONY: cppcheck
|
||||
|
Loading…
x
Reference in New Issue
Block a user