From bbc2706fd96d09f711d72a2c834c0b6948b44a11 Mon Sep 17 00:00:00 2001 From: HTHou Date: Fri, 20 Sep 2024 10:31:33 +0800 Subject: [PATCH] try --- cpp/CMakeLists.txt | 4 ---- cpp/test/CMakeLists.txt | 5 ----- 2 files changed, 9 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 0b8eec345..997e1d2a5 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -27,10 +27,6 @@ message("cmake using: USE_CPP11=${USE_CPP11}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") -if(NOT WIN32) -# enable address sanitizer default - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g") -endif() if(DEFINED ENV{CXX}) set(CMAKE_CXX_COMPILER $ENV{CXX}) diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index dbf7e9776..a0a826d1d 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -80,11 +80,6 @@ if (${COV_ENABLED}) add_compile_options(-fprofile-arcs -ftest-coverage) endif () -if(NOT WIN32) -# enable address sanitizer default - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -g") -endif() - add_executable(TsFile_Test ${TEST_SRCS}) target_link_libraries( TsFile_Test