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

cmcfarlen pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit a707672105a82cfac0e18b412d3403df0fbc64a0
Author: Chris McFarlen <[email protected]>
AuthorDate: Fri Apr 5 09:54:07 2024 -0500

    Update asan settings and fail if other allocators are used (#11212)
    
    Co-authored-by: Chris McFarlen <[email protected]>
    (cherry picked from commit 36dac7a028da89b6ce1709eab4fd9e0f475ac626)
---
 CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index abe7209246..ad60e577ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -317,7 +317,10 @@ endif()
 find_package(maxminddb) # Header_rewrite experimental/maxmind_acl
 
 if(ENABLE_ASAN)
-  add_compile_options(-fsanitize=address)
+  if(ENABLE_JEMALLOC OR ENABLE_MIMALLOC)
+    message(FATAL_ERROR "ENABLE_JEMALLOC and ENABLE_MIMALLOC are not 
compatible with asan builds")
+  endif()
+  add_compile_options(-fsanitize=address -fno-omit-frame-pointer)
   add_link_options(-fsanitize=address)
 endif()
 

Reply via email to