From cb2f3918ab386da2a3541d1ef20d5bb839d469f5 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Fri, 24 Jul 2015 19:00:16 +0000 Subject: [asan] Only link liblog on Android when it exists. With r242975, liblog is only used on certain older platforms. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243139 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sanitizer_common/tests/CMakeLists.txt') diff --git a/lib/sanitizer_common/tests/CMakeLists.txt b/lib/sanitizer_common/tests/CMakeLists.txt index 342a73246..76ca78648 100644 --- a/lib/sanitizer_common/tests/CMakeLists.txt +++ b/lib/sanitizer_common/tests/CMakeLists.txt @@ -72,7 +72,7 @@ if(ANDROID) endif() set(SANITIZER_TEST_LINK_LIBS) -append_list_if(ANDROID log SANITIZER_TEST_LINK_LIBS) +append_list_if(COMPILER_RT_HAS_LIBLOG log SANITIZER_TEST_LINK_LIBS) # NDK r10 requires -latomic almost always. append_list_if(ANDROID atomic SANITIZER_TEST_LINK_LIBS) -- cgit v1.2.1