diff options
author | Nicolas Williams <nico@cryptonector.com> | 2016-01-17 12:09:43 -0600 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2016-01-17 13:06:27 -0600 |
commit | d228490162b2892a3f461b4ff1f1e1937de703c4 (patch) | |
tree | d45f76a1540bb15262ed40b6879372e66116d597 /Makefile.am | |
parent | b92a12cf6c32b09783fd712361b2a7b1fb1527ca (diff) |
Add --enable-ubsan (undefined behavior sanitizer)
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 8a6ace42..2a3aded4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -56,6 +56,10 @@ endif include_HEADERS = src/jv.h src/jq.h +if ENABLE_UBSAN +AM_CFLAGS += -fsanitize=undefined +endif + ### Running tests under Valgrind if ENABLE_ASAN |