[compiler-rt] r353376 - [CMake] Mark runtime library link libraries as private

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 6 22:32:10 PST 2019


Author: phosek
Date: Wed Feb  6 22:32:09 2019
New Revision: 353376

URL: http://llvm.org/viewvc/llvm-project?rev=353376&view=rev
Log:
[CMake] Mark runtime library link libraries as private

There's no need to expose these dependencies to consumers. This
matches the change made to other runtimes in D57456.

Differential Revision: https://reviews.llvm.org/D57873

Modified:
    compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake

Modified: compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake?rev=353376&r1=353375&r2=353376&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake Wed Feb  6 22:32:09 2019
@@ -280,7 +280,7 @@ function(add_compiler_rt_runtime name ty
         OUTPUT_NAME ${output_name_${libname}})
     set_target_properties(${libname} PROPERTIES FOLDER "Compiler-RT Runtime")
     if(LIB_LINK_LIBS)
-      target_link_libraries(${libname} ${LIB_LINK_LIBS})
+      target_link_libraries(${libname} PRIVATE ${LIB_LINK_LIBS})
     endif()
     if(${type} STREQUAL "SHARED")
       if(COMMAND llvm_setup_rpath)




More information about the llvm-commits mailing list