diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2013-01-07 13:05:39 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2013-01-07 13:05:39 -0500 |
commit | 406891c62a4948ddee3c83a18b5d1453b159953d (patch) | |
tree | c62c8fd60d86425dc579fc28b5e6857524228fa3 /util | |
parent | 221302335baa7bfb532aeb73bb37d2f802ecec25 (diff) | |
download | gem5-406891c62a4948ddee3c83a18b5d1453b159953d.tar.xz |
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...
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions