From 4e06e4271162ac65a57719398e3b5572de9f5185 Mon Sep 17 00:00:00 2001 From: Steve Harter Date: Thu, 5 Nov 2015 18:41:48 -0600 Subject: Enable CLANG sanitizers for native debug builds --- src/pal/src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pal') diff --git a/src/pal/src/CMakeLists.txt b/src/pal/src/CMakeLists.txt index b1f11bd9e3..ad5425b8df 100644 --- a/src/pal/src/CMakeLists.txt +++ b/src/pal/src/CMakeLists.txt @@ -66,6 +66,8 @@ elseif(PAL_CMAKE_PLATFORM_ARCH_ARM64) add_definitions(-D_WIN64=1) endif() +# turn off capability to remove unused functions (which was enabled in debug build with sanitizers) +set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -Wl,--no-gc-sections") add_compile_options(-fno-builtin) add_compile_options(-fPIC) -- cgit v1.2.3