summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-03-27 12:51:45 -0700
committerBen Smith <binji@chromium.org>2016-05-02 15:33:51 -0700
commit3a91692673af5181ccd08497d6a99141f90003a8 (patch)
tree24c2127a29f8e2b5c4991c8eb707ea1ca2833b3e /Makefile
parent30e5f6f6b572bb8d522849f5ff93ff6f6b01f2eb (diff)
downloadwabt-3a91692673af5181ccd08497d6a99141f90003a8.tar.gz
wabt-3a91692673af5181ccd08497d6a99141f90003a8.tar.bz2
wabt-3a91692673af5181ccd08497d6a99141f90003a8.zip
ubsan build, need to fix one bug
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b156771a..f21c5756 100644
--- a/Makefile
+++ b/Makefile
@@ -30,8 +30,8 @@ DEFAULT_BUILD_TYPE = DEBUG
COMPILERS := GCC GCC_I686 GCC_FUZZ CLANG EMSCRIPTEN
BUILD_TYPES := DEBUG RELEASE
-SANITIZERS := ASAN MSAN LSAN
-CONFIGS := NORMAL ASAN MSAN LSAN NO_RE2C_BISON NO_TESTS
+SANITIZERS := ASAN MSAN LSAN UBSAN
+CONFIGS := NORMAL $(SANITIZERS) NO_RE2C_BISON NO_TESTS
EXECUTABLES := sexpr-wasm wasm-wast wasm-interp wasm-interp-sq hexfloat_test
# directory names
@@ -46,6 +46,7 @@ NORMAL_DIR :=
ASAN_DIR := asan/
MSAN_DIR := msan/
LSAN_DIR := lsan/
+UBSAN_DIR := ubsan/
NO_RE2C_BISON_DIR := no-re2c-bison/
NO_TESTS_DIR := no-tests/
@@ -62,6 +63,7 @@ NORMAL_FLAG :=
ASAN_FLAG := -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address
MSAN_FLAG := -DCMAKE_C_FLAGS=-fsanitize=memory -DCMAKE_CXX_FLAGS=-fsanitize=memory
LSAN_FLAG := -DCMAKE_C_FLAGS=-fsanitize=leak -DCMAKE_CXX_FLAGS=-fsanitize=leak
+UBSAN_FLAG := -DCMAKE_C_FLAGS=-fsanitize=undefined -DCMAKE_CXX_FLAGS=-fsanitize=undefined
NO_RE2C_BISON_FLAG := -DRUN_BISON=OFF -DRUN_RE2C=OFF
NO_TESTS_FLAG := -DBUILD_TESTS=OFF
@@ -77,6 +79,7 @@ NORMAL_PREFIX :=
ASAN_PREFIX := -asan
MSAN_PREFIX := -msan
LSAN_PREFIX := -lsan
+UBSAN_PREFIX := -ubsan
NO_RE2C_BISON_PREFIX := -no-re2c-bison
NO_TESTS_PREFIX := -no-tests