This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 36dac7a028 Update asan settings and fail if other allocators are used
(#11212)
36dac7a028 is described below
commit 36dac7a028da89b6ce1709eab4fd9e0f475ac626
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]>
---
CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 09413b4c7f..52e20ee2bd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -318,7 +318,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()