summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-09-22 21:08:27 +0000
committerChris Bieneman <beanz@apple.com>2016-09-22 21:08:27 +0000
commit7176862809a97d189ff5c82711f4d7afffb4dbe8 (patch)
tree5f9f00458982021b802aea90533d3612a9f56393
parent706024395f9a218aeeb4b5948fc15ab5322a763e (diff)
downloadbcm5719-llvm-7176862809a97d189ff5c82711f4d7afffb4dbe8.tar.gz
bcm5719-llvm-7176862809a97d189ff5c82711f4d7afffb4dbe8.zip
[CMake] Fixing a small hack in add_lldb_library
This code was adding an explicit dependency on libclang because lldb needs clang headers, changing this to instead depend on the clang tablegen targets means we don't have to depend on building the clang bits in libclang that lldb doesn't need. Note this is still a bit of a hack because we're adding the dependency to all lldb libraries, instead of just the ones that need it. llvm-svn: 282196
-rw-r--r--lldb/cmake/modules/AddLLDB.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
index dce7a8bd8b8..6e9f4e13c5f 100644
--- a/lldb/cmake/modules/AddLLDB.cmake
+++ b/lldb/cmake/modules/AddLLDB.cmake
@@ -91,7 +91,10 @@ macro(add_lldb_library name)
# Hack: only some LLDB libraries depend on the clang autogenerated headers,
# but it is simple enough to make all of LLDB depend on some of those
# headers without negatively impacting much of anything.
- add_dependencies(${name} libclang)
+ get_property(CLANG_TABLEGEN_TARGETS GLOBAL PROPERTY CLANG_TABLEGEN_TARGETS)
+ if(CLANG_TABLEGEN_TARGETS)
+ add_dependencies(${name} ${CLANG_TABLEGEN_TARGETS})
+ endif()
set_target_properties(${name} PROPERTIES FOLDER "lldb libraries")
endmacro(add_lldb_library)
OpenPOWER on IntegriCloud