diff options
Diffstat (limited to 'lldb/scripts/Python')
-rwxr-xr-x | lldb/scripts/Python/build-swig-Python.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh index 5fcbe7a81f2..76c53839724 100755 --- a/lldb/scripts/Python/build-swig-Python.sh +++ b/lldb/scripts/Python/build-swig-Python.sh @@ -33,6 +33,15 @@ else Debug=0 fi +# If this project is being built with LLDB_DISABLE_PYTHON defined, +# don't bother generating Python swig bindings -- we don't have +# Python available. + +if echo $GCC_PREPROCESSOR_DEFINITIONS | grep LLDB_DISABLE_PYTHON +then + echo "" > "${swig_output_file}" + exit 0 +fi HEADER_FILES="${SRC_ROOT}/include/lldb/lldb.h"\ " ${SRC_ROOT}/include/lldb/lldb-defines.h"\ |