summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2020-03-23 16:47:43 +0300
committerEugene Kosov <claprix@yandex.ru>2020-03-23 17:42:57 +0300
commita7cbce06d432cbcb88e071731089aacfd41750fd (patch)
tree52e0995a113d51006a2dea5e6a1020cb0e49086d /CMakeLists.txt
parentfb74de97287c1a3db718226a73c01f6334bf2877 (diff)
downloadmariadb-git-a7cbce06d432cbcb88e071731089aacfd41750fd.tar.gz
unoptimized -fsanitize=undefined build on clang requires more stack space
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9bb12f89751..d16252973fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -216,7 +216,7 @@ ENDIF()
OPTION(WITH_UBSAN "Enable undefined behavior sanitizer" OFF)
IF (WITH_UBSAN)
- MY_CHECK_AND_SET_COMPILER_FLAG("-fsanitize=undefined -fno-sanitize=alignment -U_FORTIFY_SOURCE" DEBUG RELWITHDEBINFO)
+ MY_CHECK_AND_SET_COMPILER_FLAG("-fsanitize=undefined -fno-sanitize=alignment -U_FORTIFY_SOURCE -DWITH_UBSAN" DEBUG RELWITHDEBINFO)
ENDIF()
OPTION(WITH_MSAN "Enable memory sanitizer" OFF)