[Lldb-commits] [lldb] r149606 - /lldb/trunk/scripts/Python/build-swig-Python.sh
Enrico Granata
granata.enrico at gmail.com
Thu Feb 2 09:26:00 PST 2012
Author: enrico
Date: Thu Feb 2 11:26:00 2012
New Revision: 149606
URL: http://llvm.org/viewvc/llvm-project?rev=149606&view=rev
Log:
ensure that changes to the typemaps are properly detected and cause SWIG to rebuild LLDBWrapPython.cpp
Modified:
lldb/trunk/scripts/Python/build-swig-Python.sh
Modified: lldb/trunk/scripts/Python/build-swig-Python.sh
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/build-swig-Python.sh?rev=149606&r1=149605&r2=149606&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/build-swig-Python.sh (original)
+++ lldb/trunk/scripts/Python/build-swig-Python.sh Thu Feb 2 11:26:00 2012
@@ -22,6 +22,7 @@
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 @@
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],,'`
More information about the lldb-commits
mailing list