diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2012-02-02 17:26:00 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2012-02-02 17:26:00 +0000 |
commit | 9d2063e49e33c3d5e5136cfb44a82512152c8657 (patch) | |
tree | 5d16773faa72e842f3e9f1ad08dfe3b13e1e7523 /lldb/scripts/Python | |
parent | ef41fd31d4634257224780fdc4fb4e8bc381562d (diff) | |
download | bcm5719-llvm-9d2063e49e33c3d5e5136cfb44a82512152c8657.tar.gz bcm5719-llvm-9d2063e49e33c3d5e5136cfb44a82512152c8657.zip |
ensure that changes to the typemaps are properly detected and cause SWIG to rebuild LLDBWrapPython.cpp
llvm-svn: 149606
Diffstat (limited to 'lldb/scripts/Python')
-rwxr-xr-x | lldb/scripts/Python/build-swig-Python.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/scripts/Python/build-swig-Python.sh b/lldb/scripts/Python/build-swig-Python.sh index 557f63a16d4..6ccea31d8b9 100755 --- a/lldb/scripts/Python/build-swig-Python.sh +++ b/lldb/scripts/Python/build-swig-Python.sh @@ -22,6 +22,7 @@ swig_output_file=${SRC_ROOT}/source/LLDBWrapPython.cpp 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 +swig_python_typemaps=${SRC_ROOT}/scripts/Python/python-typemaps.swig if [ "x$SDKROOT" = "x" ] ; then @@ -209,6 +210,19 @@ then fi fi +if [ $NeedToUpdate == 0 ] +then + if [ ${swig_python_typemaps} -nt ${swig_output_file} ] + then + NeedToUpdate=1 + if [ $Debug == 1 ] + then + echo "${swig_python_typemaps} is newer than ${swig_output_file}" + echo "swig file will need to be re-built." + fi + fi +fi + os_name=`uname -s` python_version=`/usr/bin/python --version 2>&1 | sed -e 's,Python ,,' -e 's,[.][0-9],,2' -e 's,[a-z][a-z][0-9],,'` |