From 01970c7249cfa30487da40b29e98ad3a5e51ae76 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 12 May 2022 13:24:08 -0400 Subject: [PATCH] atdna: Quick hack for ASAN --- atdna/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atdna/CMakeLists.txt b/atdna/CMakeLists.txt index 1b872db..1b25983 100644 --- a/atdna/CMakeLists.txt +++ b/atdna/CMakeLists.txt @@ -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