This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/develop by this push:
new ea4a396 Get proper backtraces when using asan
new cf2e7ad Merge pull request #206 from Oipo/feature/better_asan
ea4a396 is described below
commit ea4a396c703c3ecd67fa81f7f080e329b87d21c4
Author: Michael de Lang <[email protected]>
AuthorDate: Tue Apr 21 23:16:05 2020 +0200
Get proper backtraces when using asan
---
cmake/celix_project/CelixProject.cmake | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmake/celix_project/CelixProject.cmake
b/cmake/celix_project/CelixProject.cmake
index 1ee9369..ea549a2 100644
--- a/cmake/celix_project/CelixProject.cmake
+++ b/cmake/celix_project/CelixProject.cmake
@@ -20,11 +20,11 @@ option(ENABLE_UNDEFINED_SANITIZER "Enabled building with
undefined behavior sani
if (ENABLE_ADDRESS_SANITIZER)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
- set(CMAKE_C_FLAGS "-fsanitize=address ${CMAKE_C_FLAGS}")
- set(CMAKE_CXX_FLAGS "-fsanitize=address ${CMAKE_CXX_FLAGS}")
+ set(CMAKE_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer
${CMAKE_C_FLAGS}")
+ set(CMAKE_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer
${CMAKE_CXX_FLAGS}")
else ()
- set(CMAKE_C_FLAGS "-lasan -fsanitize=address ${CMAKE_C_FLAGS}")
- set(CMAKE_CXX_FLAGS "-lasan -fsanitize=address ${CMAKE_CXX_FLAGS}")
+ set(CMAKE_C_FLAGS "-lasan -fsanitize=address -fno-omit-frame-pointer
${CMAKE_C_FLAGS}")
+ set(CMAKE_CXX_FLAGS "-lasan -fsanitize=address -fno-omit-frame-pointer
${CMAKE_CXX_FLAGS}")
endif ()
endif()