[Lldb-commits] [lldb] r157506 - in /lldb/trunk/scripts/Python: build-swig-Python.sh finish-swig-Python-LLDB.sh
Jim Ingham
jingham at apple.com
Fri May 25 17:23:52 PDT 2012
Author: jingham
Date: Fri May 25 19:23:52 2012
New Revision: 157506
URL: http://llvm.org/viewvc/llvm-project?rev=157506&view=rev
Log:
Fix the comments about LLDB_DISABLE_PYTHON in the python swig shell scripts to be more clear.
Modified:
lldb/trunk/scripts/Python/build-swig-Python.sh
lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh
Modified: lldb/trunk/scripts/Python/build-swig-Python.sh
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/build-swig-Python.sh?rev=157506&r1=157505&r2=157506&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/build-swig-Python.sh (original)
+++ lldb/trunk/scripts/Python/build-swig-Python.sh Fri May 25 19:23:52 2012
@@ -25,7 +25,10 @@
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}
Modified: lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh?rev=157506&r1=157505&r2=157506&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh (original)
+++ lldb/trunk/scripts/Python/finish-swig-Python-LLDB.sh Fri May 25 19:23:52 2012
@@ -33,8 +33,10 @@
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" ]
More information about the lldb-commits
mailing list