summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2012-02-21 05:33:55 +0000
committerJason Molenda <jmolenda@apple.com>2012-02-21 05:33:55 +0000
commitcf7e2dc09a0af91cf15d6e2ec891b3c315c028c8 (patch)
tree27610667a81bacb9009019e5c6a704b02dabbb56 /lldb/scripts/Python
parent021f73684b14008f412b3c1b1f42400bdfb11380 (diff)
downloadbcm5719-llvm-cf7e2dc09a0af91cf15d6e2ec891b3c315c028c8.tar.gz
bcm5719-llvm-cf7e2dc09a0af91cf15d6e2ec891b3c315c028c8.zip
Patch Enrico's changes from r150558 on 2012-02-14 to build even if Python
is not available (LLDB_DISABLE_PYTHON is defined). Change build-swig-Python.sh to emit an empty LLDBPythonWrap.cpp file if this build is LLDB_DISABLE_PYTHON. Change the "Copy to Xcode.app" shell script phase in the lldb.xcodeproj to only do this copying for Mac native builds. llvm-svn: 151035
Diffstat (limited to 'lldb/scripts/Python')
-rwxr-xr-xlldb/scripts/Python/build-swig-Python.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh
index 5fcbe7a81f2..76c53839724 100755
--- a/lldb/scripts/Python/build-swig-Python.sh
+++ b/lldb/scripts/Python/build-swig-Python.sh
@@ -33,6 +33,15 @@ else
Debug=0
fi
+# If this project is being built with LLDB_DISABLE_PYTHON defined,
+# don't bother generating Python swig bindings -- we don't have
+# Python available.
+
+if echo $GCC_PREPROCESSOR_DEFINITIONS | grep LLDB_DISABLE_PYTHON
+then
+ echo "" > "${swig_output_file}"
+ exit 0
+fi
HEADER_FILES="${SRC_ROOT}/include/lldb/lldb.h"\
" ${SRC_ROOT}/include/lldb/lldb-defines.h"\
OpenPOWER on IntegriCloud