diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-04-28 23:09:57 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-04-28 23:09:57 +0200 |
commit | 6cf4e09083cddd4321de0ae69f2b4b2181b348e2 (patch) | |
tree | 015db606babc4138778cca40380b5b845bff15e1 /test/Makefile | |
parent | d367355eb4c3569d422034b69737d8dc7022e13e (diff) | |
download | dynld-6cf4e09083cddd4321de0ae69f2b4b2181b348e2.tar.gz dynld-6cf4e09083cddd4321de0ae69f2b4b2181b348e2.zip |
test: enabled sanitizer
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index 398ebc1..209a7cd 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,11 +3,20 @@ check: build ./checker -build: checker.cc ../lib/libcommon.a - g++ -o checker -g -O2 -I ../lib/include -Wall -Wextra $^ +build: checker.cc test_helper.h ../lib/libcommon.a + g++ -o checker \ + -g -O2 \ + -I ../lib/include \ + -Wall -Wextra \ + -fsanitize=address \ + -fsanitize=pointer-compare \ + -fsanitize=pointer-subtract \ + -fsanitize=undefined \ + $(filter-out %.h, $^) ../lib/libcommon.a: make -C ../lib clean: rm -f checker + make -C ../lib clean |