atdna: Quick hack for ASAN

This commit is contained in:
Luke Street 2022-05-12 13:24:08 -04:00
parent f27a63f312
commit 01970c7249
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ if(MSVC)
endif ()
else ()
target_compile_options(atdna PRIVATE -fno-rtti -fvisibility=hidden -Wno-error)
if (METAFORCE_ASAN AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
# On Linux, we need to compile without ASAN; explicitly disable it here
target_compile_options(atdna PRIVATE -stdlib=libstdc++ -fno-sanitize=address)
target_link_options(atdna PRIVATE -stdlib=libstdc++ -fno-sanitize=address)
endif ()
endif()
# Define installs