diff options
Diffstat (limited to 'lldb/scripts/Python/build-swig-Python.sh')
-rwxr-xr-x | lldb/scripts/Python/build-swig-Python.sh | 8 |
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 |