mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
when creating plugins on Linux with memory-debugging enabled, use asan flags such that the shared libraries can be loaded
This commit is contained in:
parent
0876dbc809
commit
92836caf57
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ if (HIFI_MEMORY_DEBUGGING)
|
|||
if (UNIX)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -U_FORTIFY_SOURCE -fno-stack-protector -fno-omit-frame-pointer")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libasan -static-libstdc++ -fsanitize=address")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libasan -static-libstdc++ -fsanitize=address")
|
||||
endif (UNIX)
|
||||
endif ()
|
||||
endmacro(SETUP_MEMORY_DEBUGGER)
|
||||
|
|
Loading…
Reference in a new issue