summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-08-10 16:38:57 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2018-08-10 16:38:57 +0000
commit2339dc2397de57417f5f018dd31acbf05af7fce4 (patch)
tree39b0f8715e50412cd06e673a5d6b583a6ebffcc7
parentde965ea87b6decd02a6f0a923f24ed2647c8f675 (diff)
downloadbcm5719-llvm-2339dc2397de57417f5f018dd31acbf05af7fce4.tar.gz
bcm5719-llvm-2339dc2397de57417f5f018dd31acbf05af7fce4.zip
[hwasan] Remove liblog dependency.
HWASan will not run on older Android releases where we use __android_log_write for logging. This dependency is also harmful in the case when libc itself depends on hwasan, because it creates a loop of libc -> hwasan -> liblog -> libc which makes liblog vs libc initialization order undetermined. Without liblog the loop is just libc -> hwasan -> libc and any init order issues can be solved in hwasan. llvm-svn: 339449
-rw-r--r--compiler-rt/lib/hwasan/CMakeLists.txt1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler-rt/lib/hwasan/CMakeLists.txt b/compiler-rt/lib/hwasan/CMakeLists.txt
index 42bf4366f19..6d1682bbf80 100644
--- a/compiler-rt/lib/hwasan/CMakeLists.txt
+++ b/compiler-rt/lib/hwasan/CMakeLists.txt
@@ -47,7 +47,6 @@ append_list_if(COMPILER_RT_HAS_LIBDL dl HWASAN_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_LIBRT rt HWASAN_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_LIBM m HWASAN_DYNAMIC_LIBS)
append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread HWASAN_DYNAMIC_LIBS)
-append_list_if(COMPILER_RT_HAS_LIBLOG log HWASAN_DYNAMIC_LIBS)
# Static runtime library.
add_compiler_rt_component(hwasan)
OpenPOWER on IntegriCloud