diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-10-14 17:30:07 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-11-01 12:11:50 +0300 |
commit | add2b34d0607d2ea25dc8b07245d343c30cee10e (patch) | |
tree | 7f323067dfcbb6aea2bedd28c0b0834f9d2f3a46 /CMakeLists.txt | |
parent | 581bbc85d64c7949eeb2efb26e35c1a63af958a1 (diff) |
build: Fix linking on Mac OS with ASAN on
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b22f1001..b6d40a034 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,6 +191,7 @@ if (NOT MSVC AND ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMP add_compile_options(-fsanitize=address -fno-omit-frame-pointer) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fsanitize=address") + set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fsanitize=address") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lasan") |