This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch try_fixing_codeql
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit bbc2706fd96d09f711d72a2c834c0b6948b44a11
Author: HTHou <[email protected]>
AuthorDate: Fri Sep 20 10:31:33 2024 +0800

    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 0b8eec34..997e1d2a 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 dbf7e977..a0a826d1 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

Reply via email to