diff options
-rwxr-xr-x | lldb/scripts/Python/build-swig-Python.sh | 5 | ||||
-rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 6 |
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" ] |