Support building with UBSan (-fsanitize=undefined)
include(${CMAKE_CURRENT_LIST_DIR}/vtag.cmake)
if (VESPA_USE_SANITIZER)
- if (VESPA_USE_SANITIZER STREQUAL "address" OR VESPA_USE_SANITIZER STREQUAL "thread")
+ if (VESPA_USE_SANITIZER STREQUAL "address" OR VESPA_USE_SANITIZER STREQUAL "thread" OR VESPA_USE_SANITIZER STREQUAL "undefined")
message("-- Instrumenting code using ${VESPA_USE_SANITIZER} sanitizer")
else()
message(FATAL_ERROR "Unsupported sanitizer option '${VESPA_USE_SANITIZER}'. Supported: 'address' or 'thread'")
