[PATCH] D35915: Add liblog to ubsan `UBSAN_DYNAMIC_LIBS`

Leo Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 14:17:05 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL309180: Add liblog to ubsan `UBSAN_DYNAMIC_LIBS` (authored by aoli).

Repository:
  rL LLVM

https://reviews.llvm.org/D35915

Files:
  compiler-rt/trunk/lib/ubsan/CMakeLists.txt


Index: compiler-rt/trunk/lib/ubsan/CMakeLists.txt
===================================================================
--- compiler-rt/trunk/lib/ubsan/CMakeLists.txt
+++ compiler-rt/trunk/lib/ubsan/CMakeLists.txt
@@ -35,6 +35,7 @@
 append_list_if(SANITIZER_CAN_USE_CXXABI -DUBSAN_CAN_USE_CXXABI UBSAN_CXXFLAGS)
 
 append_list_if(COMPILER_RT_HAS_LIBDL dl UBSAN_DYNAMIC_LIBS)
+append_list_if(COMPILER_RT_HAS_LIBLOG log UBSAN_DYNAMIC_LIBS)
 append_list_if(COMPILER_RT_HAS_LIBRT rt UBSAN_DYNAMIC_LIBS)
 append_list_if(COMPILER_RT_HAS_LIBPTHREAD pthread UBSAN_DYNAMIC_LIBS)
 
@@ -129,7 +130,7 @@
     add_compiler_rt_object_libraries(RTUbsan_standalone
       ARCHS ${UBSAN_SUPPORTED_ARCH}
       SOURCES ${UBSAN_STANDALONE_SOURCES} CFLAGS ${UBSAN_STANDALONE_CFLAGS})
-    
+
     # Standalone UBSan runtimes.
     add_compiler_rt_runtime(clang_rt.ubsan_standalone
       STATIC
@@ -140,7 +141,7 @@
               RTUbsan_standalone
       CFLAGS ${UBSAN_CFLAGS}
       PARENT_TARGET ubsan)
-    
+
     add_compiler_rt_runtime(clang_rt.ubsan_standalone_cxx
       STATIC
       ARCHS ${UBSAN_SUPPORTED_ARCH}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35915.108358.patch
Type: text/x-patch
Size: 1103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170726/b0ee0b12/attachment.bin>


More information about the llvm-commits mailing list