From: Gabe Black Date: Fri, 18 Sep 2020 05:33:37 +0000 (-0700) Subject: scons: Adjust the version of C++ to C++14. X-Git-Tag: develop-gem5-snapshot~723 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcffee005eb2c45567fd50c4da328c3675c410b4;p=gem5.git scons: Adjust the version of C++ to C++14. Change-Id: I318d337fc61bca0ae40413c23ee36d59d45a79bc Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34820 Reviewed-by: Jason Lowe-Power Reviewed-by: Daniel Carvalho Reviewed-by: Andreas Sandberg Reviewed-by: Richard Cooper Reviewed-by: Bobby R. Bruce Reviewed-by: Giacomo Travaglini Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/SConstruct b/SConstruct index 0e49df4fc..ebb59f60a 100755 --- a/SConstruct +++ b/SConstruct @@ -317,8 +317,8 @@ if main['GCC'] or main['CLANG']: # we consistently violate main.Append(CCFLAGS=['-Wall', '-Wundef', '-Wextra', '-Wno-sign-compare', '-Wno-unused-parameter']) - # We always compile using C++11 - main.Append(CXXFLAGS=['-std=c++11']) + # We always compile using C++14 + main.Append(CXXFLAGS=['-std=c++14']) if sys.platform.startswith('freebsd'): main.Append(CCFLAGS=['-I/usr/local/include']) main.Append(CXXFLAGS=['-I/usr/local/include'])