summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/build-swig-Python.sh
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-11-04 03:34:56 +0000
committerGreg Clayton <gclayton@apple.com>2011-11-04 03:34:56 +0000
commitdce502ede0f35762ae0fb3f895c659e4fe912bf9 (patch)
tree3a4b178f9d846db4c2e084ea055f6c77278acd60 /lldb/scripts/Python/build-swig-Python.sh
parent96e0c101fe2ccbce93947c89253921b1ddcb391d (diff)
downloadbcm5719-llvm-dce502ede0f35762ae0fb3f895c659e4fe912bf9.tar.gz
bcm5719-llvm-dce502ede0f35762ae0fb3f895c659e4fe912bf9.zip
Fixed the Xcode project building of LLVM to be a bit more user friendly:
- If you download and build the sources in the Xcode project, x86_64 builds by default using the "llvm.zip" checkpointed LLVM. - If you delete the "lldb/llvm.zip" and the "lldb/llvm" folder, and build the Xcode project will download the right LLVM sources and build them from scratch - If you have a "lldb/llvm" folder already that contains a "lldb/llvm/lib" directory, we will use the sources you have placed in the LLDB directory. Python can now be disabled for platforms that don't support it. Changed the way the libllvmclang.a files get used. They now all get built into arch specific directories and never get merged into universal binaries as this was causing issues where you would have to go and delete the file if you wanted to build an extra architecture slice. llvm-svn: 143678
Diffstat (limited to 'lldb/scripts/Python/build-swig-Python.sh')
-rwxr-xr-xlldb/scripts/Python/build-swig-Python.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh
index d7191221a77..557f63a16d4 100755
--- a/lldb/scripts/Python/build-swig-Python.sh
+++ b/lldb/scripts/Python/build-swig-Python.sh
@@ -23,6 +23,8 @@ swig_input_file=${SRC_ROOT}/scripts/lldb.swig
swig_python_extensions=${SRC_ROOT}/scripts/Python/python-extensions.swig
swig_python_wrapper=${SRC_ROOT}/scripts/Python/python-wrapper.swig
+if [ "x$SDKROOT" = "x" ] ; then
+
if [ -n "$debug_flag" -a "$debug_flag" == "-debug" ]
then
Debug=1
@@ -265,3 +267,9 @@ then
mv "${swig_output_file}.edited" ${swig_output_file}
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