From 1f292ed846c7c78d635c3d6668988f0d558773ad Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Tue, 26 May 2020 15:11:59 -0700 Subject: [PATCH] scons: "no-defautled-function-deleted" flag moved to only clang8+ It has been onserved that clang does not function with the "-Wno-defaulted-function-deleted" for versions below clang8. Change-Id: I6e6d1476350ae2b46b4de971fe3456697b39e43c Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29454 Reviewed-by: Jason Lowe-Power Reviewed-by: Anthony Gutierrez Maintainer: Jason Lowe-Power Tested-by: kokoro --- SConstruct | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 142800e60..370cd6024 100755 --- a/SConstruct +++ b/SConstruct @@ -475,11 +475,13 @@ elif main['CLANG']: # use struct hash and class hash # interchangeably. '-Wno-mismatched-tags', - '-Wno-defaulted-function-deleted', ]) if compareVersions(clang_version, "10.0") >= 0: main.Append(CCFLAGS=['-Wno-c99-designator']) + if compareVersions(clang_version, "8.0") >= 0: + main.Append(CCFLAGS=['-Wno-defaulted-function-deleted']) + main.Append(TCMALLOC_CCFLAGS=['-fno-builtin']) # On Mac OS X/Darwin we need to also use libc++ (part of XCode) as -- 2.30.2