From 406891c62a4948ddee3c83a18b5d1453b159953d Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 7 Jan 2013 13:05:39 -0500 Subject: scons: Enforce gcc >= 4.4 or clang >= 2.9 and c++0x support This patch checks that the compiler in use is either gcc >= 4.4 or clang >= 2.9. and enables building with --std=c++0x in all cases. As a consequence, we can tidy up the hashmap and always have static_assert available. If anyone wants to use alternative compilers, icc for example supports c++0x to a similar level and could be added if needed. This patch opens up for a more elaborate use of c++0x features that are present in gcc 4.4 and clang 2.9, e.g. auto typed variables, variadic templates, rvalues and move semantics, and strongly typed enums. There will be no going back on this one... --- ext/libelf/SConscript | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/libelf') diff --git a/ext/libelf/SConscript b/ext/libelf/SConscript index ac91a3025..a110602cc 100644 --- a/ext/libelf/SConscript +++ b/ext/libelf/SConscript @@ -93,8 +93,7 @@ ElfFile('libelf_msize.c') m4env = main.Clone() if m4env['GCC']: - if compareVersions(m4env['GCC_VERSION'], '4') >= 0: - m4env.Append(CCFLAGS=['-Wno-pointer-sign']) + m4env.Append(CCFLAGS=['-Wno-pointer-sign']) if compareVersions(m4env['GCC_VERSION'], '4.6') >= 0: m4env.Append(CCFLAGS=['-Wno-unused-but-set-variable', '-Wno-implicit-function-declaration']) -- cgit v1.2.3