TFE debug 版本默认启用 asan

This commit is contained in:
luwenpeng
2020-10-13 10:17:57 +08:00
parent 24db7db86d
commit b5970eedc4
2 changed files with 8 additions and 1 deletions

View File

@@ -20,7 +20,13 @@ endif()
# Global compile options
option(ENABLE_PIC "Generate position independent code (necessary for shared libraries)" TRUE)
option(ENABLE_WARNING_ALL "Enable all optional warnings which are desirable for normal code" TRUE)
option(ENABLE_SANITIZE_ADDRESS "Enable AddressSanitizer" FALSE)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
option(ENABLE_SANITIZE_ADDRESS "Enable AddressSanitizer" TRUE)
else()
option(ENABLE_SANITIZE_ADDRESS "Enable AddressSanitizer" FALSE)
endif()
option(ENABLE_SANITIZE_THREAD "Enable ThreadSanitizer" FALSE)
# Plugins

View File

@@ -36,6 +36,7 @@ env | sort
yum install -y mrzcpd numactl-devel zlib-devel librdkafka-devel systemd-devel
yum install -y libcjson-devel libmaatframe-devel libMESA_field_stat2-devel libMESA_handle_logger-devel
yum install -y libMESA_htable-devel libMESA_prof_load-devel librulescan-devel libwiredcfg-devel libWiredLB-devel sapp-devel
yum install -y libasan
mkdir build || true
cd build