[Lldb-commits] [lldb] r212319 - Fix Windows build when python is not explicitly enabled

Todd Fiala todd.fiala at gmail.com
Thu Jul 3 23:43:47 PDT 2014


Author: tfiala
Date: Fri Jul  4 01:43:47 2014
New Revision: 212319

URL: http://llvm.org/viewvc/llvm-project?rev=212319&view=rev
Log:
Fix Windows build when python is not explicitly enabled

Currently Windows disables Python builds by default.  This
change ensures we don't process the scripts dir when we're
on Windows unless we're explicitly enabling python, which
prevents a build error.

Change by Deepak Panickal

Modified:
    lldb/trunk/CMakeLists.txt

Modified: lldb/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/CMakeLists.txt?rev=212319&r1=212318&r2=212319&view=diff
==============================================================================
--- lldb/trunk/CMakeLists.txt (original)
+++ lldb/trunk/CMakeLists.txt Fri Jul  4 01:43:47 2014
@@ -316,7 +316,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}
 
 #add_subdirectory(include)
 add_subdirectory(docs)
-add_subdirectory(scripts)
+if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows" OR NOT LLDB_DISABLE_PYTHON)
+  add_subdirectory(scripts)
+endif ()
 add_subdirectory(source)
 add_subdirectory(test)
 add_subdirectory(tools)





More information about the lldb-commits mailing list