Revert "[lldb][cmake] Remove libclang as an lldbBase dependency (NFCI)"
authorVedant Kumar <vsk@apple.com>
Fri, 19 Aug 2016 21:00:40 +0000 (21:00 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 19 Aug 2016 21:00:40 +0000 (21:00 +0000)
This reverts commit r279296. Including LLDBDependencies breaks the
netbsd lldb bot because it exposes LLDB_USED_LIBS, which causes
lldb_link_common_libs to run to completion in unintended sites, which
results in a malformed call to target_link_libraries.

  http://lab.llvm.org:8011/builders/lldb-amd64-ninja-netbsd7/builds/5989

Thanks to Chris Bieneman for figuring this out!

llvm-svn: 279322

lldb/CMakeLists.txt
lldb/cmake/modules/AddLLDB.cmake

index a8c817e..e092e0b 100644 (file)
@@ -1,6 +1,5 @@
 cmake_minimum_required(VERSION 3.4.3)
 
-include(cmake/LLDBDependencies.cmake)
 include(cmake/modules/LLDBStandalone.cmake)
 include(cmake/modules/LLDBConfig.cmake)
 include(cmake/modules/AddLLDB.cmake)
index fb7a8f3..cf27729 100644 (file)
@@ -84,7 +84,10 @@ macro(add_lldb_library name)
     endif()
   endif()
 
-  add_dependencies(${name} ${CLANG_USED_LIBS})
+  # 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)
 
   set_target_properties(${name} PROPERTIES FOLDER "lldb libraries")
 endmacro(add_lldb_library)