scons: Avoid the unsupported option -Wno-c99-designator in MacOS

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>
This commit is contained in:
Nikos Nikoleris
2020-08-31 08:19:09 +03:00
parent 3a76c38d77
commit 6bd0a394c2

View File

@@ -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: