From 40af27b571137f1b2b0cea7a455857b310fb58aa Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 2 Dec 2020 04:27:57 -0800 Subject: [PATCH] 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 --- util/m5/SConstruct | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2