TFE debug 版本默认启用 asan
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user