From d11aae5db572445dd22c80b2dee100f7dfbaee94 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Fri, 12 Oct 2018 02:36:19 +0000 Subject: [PATCH] Fix bug where `config.asan_dynamic` in generated ASan `lit.site.cfg` files was set to `False` for macOS. `config.asan_dynamic` should actually be `True` because dylibs are the only supported form of the ASan runtime on Apple platforms. Reviewers: kubamracek, george.karpenkov, samsonov Subscribers: srhines, mgorny, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D53183 llvm-svn: 344324 --- compiler-rt/test/asan/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/asan/CMakeLists.txt b/compiler-rt/test/asan/CMakeLists.txt index e6d1df5e039a..6c22ef3b10ef 100644 --- a/compiler-rt/test/asan/CMakeLists.txt +++ b/compiler-rt/test/asan/CMakeLists.txt @@ -56,7 +56,7 @@ foreach(arch ${ASAN_TEST_ARCH}) string(TOLOWER "-${arch}-${OS_NAME}" ASAN_TEST_CONFIG_SUFFIX) get_bits_for_arch(${arch} ASAN_TEST_BITS) get_test_cc_for_arch(${arch} ASAN_TEST_TARGET_CC ASAN_TEST_TARGET_CFLAGS) - if(ANDROID) + if(ANDROID OR APPLE) set(ASAN_TEST_DYNAMIC True) else() set(ASAN_TEST_DYNAMIC False)