mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2024-11-30 10:11:22 +00:00
attempt to reconcile usan and benchHash
This commit is contained in:
parent
a642aba0f5
commit
d3a76b3a28
4
Makefile
4
Makefile
@ -229,11 +229,13 @@ c90test: xxhash.c
|
|||||||
$(CC) $(FLAGS) $^ $(LDFLAGS) -c
|
$(CC) $(FLAGS) $^ $(LDFLAGS) -c
|
||||||
$(RM) xxhash.o
|
$(RM) xxhash.o
|
||||||
|
|
||||||
|
.PHONY: usan
|
||||||
usan: CC=clang
|
usan: CC=clang
|
||||||
|
usan: CXX=clang++
|
||||||
usan: ## check CLI runtime for undefined behavior, using clang's sanitizer
|
usan: ## check CLI runtime for undefined behavior, using clang's sanitizer
|
||||||
@echo ---- check undefined behavior - sanitize ----
|
@echo ---- check undefined behavior - sanitize ----
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
$(MAKE) test CC=$(CC) MOREFLAGS="-g -fsanitize=undefined -fno-sanitize-recover=all"
|
$(MAKE) test CC=$(CC) CXX=$(CXX) MOREFLAGS="-g -fsanitize=undefined -fno-sanitize-recover=all"
|
||||||
|
|
||||||
.PHONY: staticAnalyze
|
.PHONY: staticAnalyze
|
||||||
SCANBUILD ?= scan-build
|
SCANBUILD ?= scan-build
|
||||||
|
@ -31,6 +31,7 @@ CFLAGS ?= -O3
|
|||||||
CFLAGS += -std=c99 -Wall -Wextra -Wstrict-aliasing=1
|
CFLAGS += -std=c99 -Wall -Wextra -Wstrict-aliasing=1
|
||||||
CFLAGS += $(MOREFLAGS) # custom way to add flags
|
CFLAGS += $(MOREFLAGS) # custom way to add flags
|
||||||
CXXFLAGS ?= -O3
|
CXXFLAGS ?= -O3
|
||||||
|
LDFLAGS += $(MOREFLAGS)
|
||||||
|
|
||||||
|
|
||||||
OBJ_LIST = main.o bhDisplay.o benchHash.o benchfn.o timefn.o
|
OBJ_LIST = main.o bhDisplay.o benchHash.o benchfn.o timefn.o
|
||||||
|
Loading…
Reference in New Issue
Block a user