summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2022-10-01 07:13:36 (GMT)
committerYann Collet <cyan@fb.com>2022-10-01 07:36:24 (GMT)
commit4dafb855a6d33ffe21b978274e7e650e41c2feda (patch)
tree23fe74a8a0af7b6fbf29b94f9a40ed6ab681810e /Makefile
parente312412c60140b3d061526499cef22e5e99d7751 (diff)
downloadlz4-4dafb855a6d33ffe21b978274e7e650e41c2feda.zip
lz4-4dafb855a6d33ffe21b978274e7e650e41c2feda.tar.gz
lz4-4dafb855a6d33ffe21b978274e7e650e41c2feda.tar.bz2
fixed usan32 tests
the sanitizer was not enabled, due to environment variables not being passed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e70c3db..da56ebc 100644
--- a/Makefile
+++ b/Makefile
@@ -162,10 +162,10 @@ usan: clean
CC=$(CC) CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1
.PHONY: usan32
-usan32: CFLAGS = -m32 -O3 -g -fsanitize=undefined
+usan32: CFLAGS = -m32 -O3 -g -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-recover=pointer-overflow
usan32: LDFLAGS = $(CFLAGS)
usan32: clean
- $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1
+ CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' $(MAKE) V=1 test FUZZER_TIME="-T30s" NB_LOOPS=-i1
SCANBUILD ?= scan-build
SCANBUILD_FLAGS += --status-bugs -v --force-analyze-debug-code