<div dir="ltr">At the end of the day though, lldb DOES need to link against libclang. Is it still doing this?<div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 22, 2016 at 2:17 PM Chris Bieneman via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: cbieneman<br class="gmail_msg">
Date: Thu Sep 22 16:08:27 2016<br class="gmail_msg">
New Revision: 282196<br class="gmail_msg">
<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=282196&view=rev" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project?rev=282196&view=rev</a><br class="gmail_msg">
Log:<br class="gmail_msg">
[CMake] Fixing a small hack in add_lldb_library<br class="gmail_msg">
<br class="gmail_msg">
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.<br class="gmail_msg">
<br class="gmail_msg">
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.<br class="gmail_msg">
<br class="gmail_msg">
Modified:<br class="gmail_msg">
lldb/trunk/cmake/modules/AddLLDB.cmake<br class="gmail_msg">
<br class="gmail_msg">
Modified: lldb/trunk/cmake/modules/AddLLDB.cmake<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/AddLLDB.cmake?rev=282196&r1=282195&r2=282196&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/AddLLDB.cmake?rev=282196&r1=282195&r2=282196&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- lldb/trunk/cmake/modules/AddLLDB.cmake (original)<br class="gmail_msg">
+++ lldb/trunk/cmake/modules/AddLLDB.cmake Thu Sep 22 16:08:27 2016<br class="gmail_msg">
@@ -91,7 +91,10 @@ macro(add_lldb_library name)<br class="gmail_msg">
# Hack: only some LLDB libraries depend on the clang autogenerated headers,<br class="gmail_msg">
# but it is simple enough to make all of LLDB depend on some of those<br class="gmail_msg">
# headers without negatively impacting much of anything.<br class="gmail_msg">
- add_dependencies(${name} libclang)<br class="gmail_msg">
+ get_property(CLANG_TABLEGEN_TARGETS GLOBAL PROPERTY CLANG_TABLEGEN_TARGETS)<br class="gmail_msg">
+ if(CLANG_TABLEGEN_TARGETS)<br class="gmail_msg">
+ add_dependencies(${name} ${CLANG_TABLEGEN_TARGETS})<br class="gmail_msg">
+ endif()<br class="gmail_msg">
<br class="gmail_msg">
set_target_properties(${name} PROPERTIES FOLDER "lldb libraries")<br class="gmail_msg">
endmacro(add_lldb_library)<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
lldb-commits mailing list<br class="gmail_msg">
<a href="mailto:lldb-commits@lists.llvm.org" class="gmail_msg" target="_blank">lldb-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br class="gmail_msg">
</blockquote></div>