diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | tests/Makefile | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -124,8 +124,8 @@ check: .PHONY: test test: - $(MAKE) -C $(TESTDIR) $@ - $(MAKE) -C $(EXDIR) $@ + CFLAGS="$(CFLAGS)" $(MAKE) -C $(TESTDIR) $@ + CFLAGS="$(CFLAGS)" $(MAKE) -C $(EXDIR) $@ clangtest: CFLAGS ?= -O3 clangtest: CFLAGS += -Werror -Wconversion -Wno-sign-conversion @@ -143,7 +143,7 @@ clangtest-native: clean @CFLAGS="-O3 -Werror -Wconversion -Wno-sign-conversion" $(MAKE) -C $(TESTDIR) native CC=clang usan: clean - CC=clang CFLAGS="-O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1 + CC=clang CFLAGS="-O3 -g -fsanitize=undefined -fno-sanitize-recover=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1 usan32: clean CFLAGS="-m32 -O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1 diff --git a/tests/Makefile b/tests/Makefile index 5a6ec59..43c9651 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -35,7 +35,7 @@ PYTHON ?= python3 DEBUGLEVEL?= 1 DEBUGFLAGS = -g -DLZ4_DEBUG=$(DEBUGLEVEL) -CFLAGS ?= -O3 # can select custom optimization flags. For example : CFLAGS=-O2 make +CFLAGS ?= -O3 # can select custom optimization flags. Example : CFLAGS=-O2 make CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \ -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \ -Wpointer-arith -Wstrict-aliasing=1 |