aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-08-08 10:27:50 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-08-08 10:41:54 +0300
commit4c31ac3f80c9d4c558cffc5e0c891a4ee578b476 (patch)
treef917cbf255c3299ee9850d5f7fc220eb14e8675c
parentbbaa4b454775bd56b2c24c3f08774c71f81ae404 (diff)
downloadydb-4c31ac3f80c9d4c558cffc5e0c891a4ee578b476.tar.gz
Consistently pass -DNDEBUG / -UNDEBUG disregarding SANITIZER_TYPE
c0d3c2b73c888b6231967a458bec8eff829ee234
-rw-r--r--build/ymake.core.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index 9336ae8093..6aa9db3714 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -4848,7 +4848,7 @@ when ($CLANG && $DEBUGINFO_LINES_ONLY == "yes" && $NO_DEBUGINFO != "yes") {
# NB: Assertions under sanitizers are disabled as they cause
# a couple _relocation out of range_ problems plus an
# ICE when building contrib/libs/hyperscan/runtime_avx512.
-when ($BUILD_TYPE == "RELEASE" || $BUILD_TYPE == "MINSIZEREL" || $BUILD_TYPE == "VALGRIND-RELEASE" || $BUILD_TYPE == "PROFILE" || $BUILD_TYPE == "GPROF" || $BUILD_TYPE == "DEBUGNOASSERTS" || $SANITIZER_TYPE != "") {
+when ($BUILD_TYPE == "RELEASE" || $BUILD_TYPE == "MINSIZEREL" || $BUILD_TYPE == "VALGRIND-RELEASE" || $BUILD_TYPE == "PROFILE" || $BUILD_TYPE == "GPROF" || $BUILD_TYPE == "DEBUGNOASSERTS") {
CFLAGS += -DNDEBUG
when ($OS_WINDOWS) {
# FIXME: defining _DEBUG on Linux gives more relation problems and breaks certain tests