mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[cmake] restrict object library dependency generation to PUBLIC libraries
Previous patch broken flang, which has some yet-to-be resolved cyclic dependencies. This patch fixes the breakage by restricting the dependencies which are generated to public libraries, which is probably more sensible anyway. Differential Revision: https://reviews.llvm.org/D79366
This commit is contained in:
parent
1fcb4ff4f6
commit
9f66371021
@ -471,7 +471,12 @@ function(llvm_add_library name)
|
||||
# result in generating header files. Add a dependendency so that
|
||||
# the generated header is created before this object library.
|
||||
if(ARG_LINK_LIBS)
|
||||
foreach(link_lib ${ARG_LINK_LIBS})
|
||||
cmake_parse_arguments(LINK_LIBS_ARG
|
||||
""
|
||||
""
|
||||
"PUBLIC;PRIVATE"
|
||||
${ARG_LINK_LIBS})
|
||||
foreach(link_lib ${LINK_LIBS_ARG_PUBLIC})
|
||||
if(TARGET ${link_lib})
|
||||
add_dependencies(${obj_name} ${link_lib})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user