scons: Avoid the unsupported option -Wno-c99-designator in MacOS
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Mon, 31 Aug 2020 05:19:09 +0000 (08:19 +0300)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 1 Sep 2020 06:25:15 +0000 (06:25 +0000)
Change-Id: I4d95c75915b17531bdd6d9161eb266bb91cd7bef
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33775
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
SConstruct

index d229ab8e3bbd1f262961507b2e70139d89fbfbe5..4e47bdaebd717163da5c2b78e04e33407bd42700 100755 (executable)
@@ -440,7 +440,8 @@ elif main['CLANG']:
                          # interchangeably.
                          '-Wno-mismatched-tags',
                          ])
-    if compareVersions(clang_version, "10.0") >= 0:
+    if sys.platform != "darwin" and \
+       compareVersions(clang_version, "10.0") >= 0:
         main.Append(CCFLAGS=['-Wno-c99-designator'])
 
     if compareVersions(clang_version, "8.0") >= 0: