summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMatteo Andreozzi <Matteo.Andreozzi@arm.com>2016-05-27 16:46:03 +0100
committerMatteo Andreozzi <Matteo.Andreozzi@arm.com>2016-05-27 16:46:03 +0100
commitc2ca4779f9c4fb7b8e21ee3dcfadbc1001e03ad2 (patch)
tree5222fcd4a23a5aebf876e74b88b08b6abcdaae23 /SConstruct
parent4a6bb821233e376e0ef9b2779243e968ce494dda (diff)
downloadgem5-c2ca4779f9c4fb7b8e21ee3dcfadbc1001e03ad2.tar.xz
scons: Enable override suggestions on gcc 5.0+
--- SConstruct | 4 ++++ 1 file changed, 4 insertions(+)
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 5b3ab1188..53dd6d352 100755
--- a/SConstruct
+++ b/SConstruct
@@ -733,6 +733,10 @@ if main['GCC']:
main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
'-fno-builtin-realloc', '-fno-builtin-free'])
+ # add option to check for undeclared overrides
+ if compareVersions(gcc_version, "5.0") > 0:
+ main.Append(CCFLAGS=['-Wno-error=suggest-override'])
+
elif main['CLANG']:
# Check for a supported version of clang, >= 3.1 is needed to
# support similar features as gcc 4.7. See