scons: Enable override suggestions on gcc 5.0+
--- SConstruct | 4 ++++ 1 file changed, 4 insertions(+)
This commit is contained in:
parent
4a6bb82123
commit
c2ca4779f9
1 changed files with 4 additions and 0 deletions
|
@ -733,6 +733,10 @@ if main['GCC']:
|
||||||
main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
|
main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc',
|
||||||
'-fno-builtin-realloc', '-fno-builtin-free'])
|
'-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']:
|
elif main['CLANG']:
|
||||||
# Check for a supported version of clang, >= 3.1 is needed to
|
# Check for a supported version of clang, >= 3.1 is needed to
|
||||||
# support similar features as gcc 4.7. See
|
# support similar features as gcc 4.7. See
|
||||||
|
|
Loading…
Reference in a new issue