From: Bobby R. Bruce Date: Tue, 26 May 2020 22:11:59 +0000 (-0700) Subject: scons: "no-defautled-function-deleted" flag moved to only clang8+ X-Git-Tag: v20.0.0.0~7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f292ed846c7c78d635c3d6668988f0d558773ad;p=gem5.git 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 --- 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