summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2014-10-09 17:51:57 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2014-10-09 17:51:57 -0400
commit3f6dc3c5718198bcfbb5842bf5f07e99fc8b3cbe (patch)
tree9e81df9602dbcec8a676e5bd1447b3a55fa4cae7 /SConstruct
parentf4a538f8624a3e07ba7a8666ed45ad9bca5e85ed (diff)
downloadgem5-3f6dc3c5718198bcfbb5842bf5f07e99fc8b3cbe.tar.xz
scons: Warn for known gcc and swig incompatibilities
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct11
1 files changed, 11 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 883a52718..a96f8a685 100755
--- a/SConstruct
+++ b/SConstruct
@@ -746,6 +746,17 @@ if compareVersions(swig_version[2], min_swig_version) < 0:
print ' Installed version:', swig_version[2]
Exit(1)
+# Check for known incompatibilities. The standard library shipped with
+# gcc >= 4.9 does not play well with swig versions prior to 3.0
+if main['GCC'] and compareVersions(gcc_version, '4.9') >= 0 and \
+ compareVersions(swig_version[2], '3.0') < 0:
+ print termcap.Yellow + termcap.Bold + \
+ 'Warning: This combination of gcc and swig have' + \
+ ' known incompatibilities.\n' + \
+ ' If you encounter build problems, please update ' + \
+ 'swig to 3.0 or later.' + \
+ termcap.Normal
+
# Set up SWIG flags & scanner
swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
main.Append(SWIGFLAGS=swig_flags)