Skip to content

Commit

Permalink
[CMake] Mark runtime library link libraries as private
Browse files Browse the repository at this point in the history
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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353376 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
petrhosek committed Feb 7, 2019
1 parent 99772d3 commit d132f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/AddCompilerRT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function(add_compiler_rt_runtime name type)
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)
Expand Down

0 comments on commit d132f10

Please sign in to comment.