diff options
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | test/lit.cfg | 1 | ||||
-rw-r--r-- | test/lit.site.cfg.in | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 164ce1a1..b40b9414 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -617,12 +617,15 @@ endif() message(STATUS "${CMAKE_CXX_FLAGS}") set(IS_ASAN_BUILD 0) set(IS_UBSAN_BUILD 0) +set(IS_MSAN_BUILD 0) string(REPLACE " " ";" _flags ${CMAKE_CXX_FLAGS}) foreach(arg IN ITEMS ${_flags}) if (${arg} STREQUAL -fsanitize=address) set(IS_ASAN_BUILD 1) elseif (${arg} STREQUAL -fsanitize=undefined) set(IS_UBSAN_BUILD 1) + elseif (${arg} STREQUAL -fsanitize=memory) + set(IS_MSAN_BUILD 1) endif() endforeach() unset(_flags) diff --git a/test/lit.cfg b/test/lit.cfg index e56dc31f..7c5ed220 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -197,3 +197,4 @@ for target in supported_targets: # Sanitizer config.available_features.add('{}asan'.format('' if config.have_asan else 'not-')) config.available_features.add('{}ubsan'.format('' if config.have_ubsan else 'not-')) +config.available_features.add('{}msan'.format('' if config.have_msan else 'not-')) diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index 3367a909..7839b66e 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -35,6 +35,7 @@ config.enable_z3 = True if @ENABLE_Z3@ == 1 else False config.enable_zlib = True if @HAVE_ZLIB_H@ == 1 else False config.have_asan = True if @IS_ASAN_BUILD@ == 1 else False config.have_ubsan = True if @IS_UBSAN_BUILD@ == 1 else False +config.have_msan = True if @IS_MSAN_BUILD@ == 1 else False # Add sanitizer list config.environment['LSAN_OPTIONS'] = "suppressions=@KLEE_UTILS_DIR@/sanitizers/lsan.txt" |