summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/build-swig-Python.sh
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-05-24 01:16:09 +0000
committerJim Ingham <jingham@apple.com>2012-05-24 01:16:09 +0000
commit777e6d01ea4fe8f7cac76f0287e4124959f733f2 (patch)
tree15cf469b3b7c909a7cef01c720e9d08951f51510 /lldb/scripts/Python/build-swig-Python.sh
parentc11535c248cfa3744eb273b3af282097924950d1 (diff)
downloadbcm5719-llvm-777e6d01ea4fe8f7cac76f0287e4124959f733f2.tar.gz
bcm5719-llvm-777e6d01ea4fe8f7cac76f0287e4124959f733f2.zip
Change the "Debug" build to use the current MacOSX SDK. Fix the swig builder to have an explicit
short-circuit of the Python SWIG building, rather than relying on the SDKROOT being set. llvm-svn: 157363
Diffstat (limited to 'lldb/scripts/Python/build-swig-Python.sh')
-rwxr-xr-xlldb/scripts/Python/build-swig-Python.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh
index 76c53839724..be747bffdb6 100755
--- a/lldb/scripts/Python/build-swig-Python.sh
+++ b/lldb/scripts/Python/build-swig-Python.sh
@@ -24,7 +24,12 @@ swig_python_extensions=${SRC_ROOT}/scripts/Python/python-extensions.swig
swig_python_wrapper=${SRC_ROOT}/scripts/Python/python-wrapper.swig
swig_python_typemaps=${SRC_ROOT}/scripts/Python/python-typemaps.swig
-if [ "x$SDKROOT" = "x" ] ; then
+if [ $LLDB_DISABLE_PYTHON = "1" ] ; then
+ # SDKROOT was not empty, which currently means iOS cross build where python is disabled
+ rm -rf ${swig_output_file}
+ touch ${swig_output_file}
+
+else
if [ -n "$debug_flag" -a "$debug_flag" == "-debug" ]
then
@@ -303,8 +308,4 @@ then
fi
fi
-else
- # SDKROOT was not empty, which currently means iOS cross build where python is disabled
- rm -rf ${swig_output_file}
- touch ${swig_output_file}
fi
OpenPOWER on IntegriCloud