[Lldb-commits] [lldb] r249256 - cmake: ensure readline python module target is added before finishing swig.

Todd Fiala via lldb-commits lldb-commits at lists.llvm.org
Sat Oct 3 18:28:51 PDT 2015


Author: tfiala
Date: Sat Oct  3 20:28:51 2015
New Revision: 249256

URL: http://llvm.org/viewvc/llvm-project?rev=249256&view=rev
Log:
cmake: ensure readline python module target is added before finishing swig.

When the readline target exists (only for non-Android Linux currently),
ensure that target is made a dependency of the finish_swig python-wrap-up
steps.  This ensures it is built when building the lldb target.

Fixes:
https://llvm.org/bugs/show_bug.cgi?id=25038

Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=249256&r1=249255&r2=249256&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Sat Oct  3 20:28:51 2015
@@ -24,6 +24,12 @@ if (NOT LLDB_DISABLE_PYTHON)
     # We depend on liblldb being built before we can do this step.
     add_dependencies(finish_swig liblldb argdumper)
 
+    # If we build the readline module, we depend on that happening
+    # first.
+    if (TARGET readline)
+        add_dependencies(finish_swig readline)
+    endif()
+
     # Ensure we do the python post-build step when building lldb.
     add_dependencies(lldb finish_swig)
 




More information about the lldb-commits mailing list