From: Gabe Black Date: Wed, 2 Dec 2020 12:27:57 +0000 (-0800) Subject: util: Force the m5 utility to be built using c++14. X-Git-Tag: develop-gem5-snapshot~340 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40af27b571137f1b2b0cea7a455857b310fb58aa;p=gem5.git util: Force the m5 utility to be built using c++14. 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 Reviewed-by: Matt Sinclair Maintainer: Matt Sinclair Tested-by: kokoro --- diff --git a/util/m5/SConstruct b/util/m5/SConstruct index 6552bfb9f..e36cb73b4 100644 --- a/util/m5/SConstruct +++ b/util/m5/SConstruct @@ -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