scons: "no-defautled-function-deleted" flag moved to only clang8+
authorBobby R. Bruce <bbruce@ucdavis.edu>
Tue, 26 May 2020 22:11:59 +0000 (15:11 -0700)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Thu, 28 May 2020 04:48:54 +0000 (04:48 +0000)
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 <power.jg@gmail.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
SConstruct

index 142800e60620eb4a45a2cb3b98c486d7c5830c39..370cd60241f18dbb0deac707fb8b57ecc91fcb9b 100755 (executable)
@@ -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