From 8b30d848e946fcdfda7759cb286f9705805a33c3 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 20 May 2024 07:05:08 -0700 Subject: [PATCH] scons: Setup scons for gem5 only supporting gcc >=10 Change-Id: I66f83498a38def3d00d1c9e981aa90706ee20bbb --- SConstruct | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/SConstruct b/SConstruct index abdc6e5111..bfdca815ed 100755 --- a/SConstruct +++ b/SConstruct @@ -631,8 +631,8 @@ for variant_path in variant_paths: "src/SConscript to support that compiler."))) if env['GCC']: - if compareVersions(env['CXXVERSION'], "7") < 0: - error('gcc version 7 or newer required.\n' + if compareVersions(env['CXXVERSION'], "10") < 0: + error('gcc version 10 or newer required.\n' 'Installed version:', env['CXXVERSION']) # Add the appropriate Link-Time Optimization (LTO) flags if @@ -656,17 +656,6 @@ for variant_path in variant_paths: '-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-free']) - if compareVersions(env['CXXVERSION'], "9") < 0: - # `libstdc++fs`` must be explicitly linked for `std::filesystem`` - # in GCC version 8. As of GCC version 9, this is not required. - # - # In GCC 7 the `libstdc++fs`` library explicit linkage is also - # required but the `std::filesystem` is under the `experimental` - # namespace(`std::experimental::filesystem`). - # - # Note: gem5 does not support GCC versions < 7. - env.Append(LIBS=['stdc++fs']) - elif env['CLANG']: if compareVersions(env['CXXVERSION'], "6") < 0: error('clang version 6 or newer required.\n'