summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xSConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 4ca4ae56d..a5a598660 100755
--- a/SConstruct
+++ b/SConstruct
@@ -713,6 +713,15 @@ if compareVersions(swig_version[2], min_swig_version) < 0:
print ' Installed version:', swig_version[2]
Exit(1)
+if swig_version[2] == "2.0.9":
+ print '\n' + termcap.Yellow + termcap.Bold + \
+ 'Warning: SWIG version 2.0.9 sometimes generates broken code.\n' + \
+ termcap.Normal + \
+ 'This problem only affects some platforms and some Python\n' + \
+ 'versions. See the following SWIG bug report for details:\n' + \
+ 'http://sourceforge.net/p/swig/bugs/1297/\n'
+
+
# Set up SWIG flags & scanner
swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
main.Append(SWIGFLAGS=swig_flags)