util: Force the m5 utility to be built using c++14.
authorGabe Black <gabe.black@gmail.com>
Wed, 2 Dec 2020 12:27:57 +0000 (04:27 -0800)
committerGabe Black <gabe.black@gmail.com>
Mon, 21 Dec 2020 23:48:14 +0000 (23:48 +0000)
Otherwise, the version of the standard being used will depend on the
version of the compiler, and may not build consistently on different
machines.

Change-Id: I3a031a2dfe97df3dd83926abb517781069c1c6a5
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38216
Reviewed-by: Daniel Gerzhoy <daniel.gerzhoy@gmail.com>
Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/m5/SConstruct

index 6552bfb9fa62b71c990fcd1b28901224c3eaad18..e36cb73b4efd8d2b176a038929e6613664e066b0 100644 (file)
@@ -58,6 +58,7 @@ else:
     main.Append(CXXFLAGS=[ '-O2' ])
     main.Append(CCFLAGS=[ '-O2' ])
 main.Append(CPPPATH=[ common_include ])
+main.Append(CXXFLAGS=[ '-std=c++14' ])
 
 if not GetOption('verbose'):
     # A functor which returns a shorter summary string to replace the normal