Skip to content

Commit fb560cf

Browse files
author
Martin Mory
committed
Fix fsanitize=address and fsanitize=thread clash
1 parent 79aa718 commit fb560cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unittests/PhasarLLVM/DataFlowSolver/IfdsIde/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(ThreadedIfdsIdeSources
1515
if(UNIX AND CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
1616
# Only add thread sanitizer for the test if asan is disabled because both
1717
# cannot be active at the same time.
18-
if (NOT "${LLVM_USE_SANITIZER}" MATCHES ".*Address.*")
18+
if (NOT "${LLVM_USE_SANITIZER}" MATCHES ".*Address.*" AND NOT "${CMAKE_CXX_FLAGS}" MATCHES ".*address.*")
1919
# Append -fno-omit-frame-pointer to get better stack traces.
2020
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -fsanitize=thread")
2121
endif()

0 commit comments

Comments
 (0)