summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-05-26 00:23:52 +0000
committerJim Ingham <jingham@apple.com>2012-05-26 00:23:52 +0000
commitde22182b339a8746221ab09f67f1b39b5912e109 (patch)
tree174fa34b949115ea385759738de6af6a96afc6ee
parent8ed0749a34df1b9a8c1514e44247988f579bfba8 (diff)
downloadbcm5719-llvm-de22182b339a8746221ab09f67f1b39b5912e109.tar.gz
bcm5719-llvm-de22182b339a8746221ab09f67f1b39b5912e109.zip
Fix the comments about LLDB_DISABLE_PYTHON in the python swig shell scripts to be more clear.
llvm-svn: 157506
-rwxr-xr-xlldb/scripts/Python/build-swig-Python.sh5
-rwxr-xr-xlldb/scripts/Python/finish-swig-Python-LLDB.sh6
2 files changed, 8 insertions, 3 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh
index 97b1680f2cc..d75f6e76a46 100755
--- a/lldb/scripts/Python/build-swig-Python.sh
+++ b/lldb/scripts/Python/build-swig-Python.sh
@@ -25,7 +25,10 @@ swig_python_wrapper=${SRC_ROOT}/scripts/Python/python-wrapper.swig
swig_python_typemaps=${SRC_ROOT}/scripts/Python/python-typemaps.swig
if [ $LLDB_DISABLE_PYTHON = "1" ] ; then
- # LLDB_DISABLE_PYTHON is set, which currently means iOS cross build where python is disabled
+ # We don't want Python for this build, but touch the output file so we don't have to
+ # conditionalize the build on this as well.
+ # Note, at present iOS doesn't have Python, so if you're building for iOS be sure to
+ # set LLDB_DISABLE_PYTHON to 1.
rm -rf ${swig_output_file}
touch ${swig_output_file}
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh
index e7347fabd46..2e24091a2db 100755
--- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh
+++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh
@@ -33,8 +33,10 @@ CONFIG_BUILD_DIR=$3
PYTHON_INSTALL_DIR=$4
debug_flag=$5
-# Make sure LLDB_DISABLE_PYTHON is not set, since if it is this is an iOS build where python
-# is disabled
+# If we don't want Python, then just do nothing here.
+# Note, at present iOS doesn't have Python, so if you're building for iOS be sure to
+# set LLDB_DISABLE_PYTHON to 1.
+
if [ ! $LLDB_DISABLE_PYTHON = "1" ] ; then
if [ -n "$debug_flag" -a "$debug_flag" == "-debug" ]
OpenPOWER on IntegriCloud