From: Nikos Nikoleris Date: Mon, 31 Aug 2020 05:19:09 +0000 (+0300) Subject: scons: Avoid the unsupported option -Wno-c99-designator in MacOS X-Git-Tag: v20.1.0.0~175 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6bd0a394c29796dc01753caa72e4abcb466bf93b;p=gem5.git scons: Avoid the unsupported option -Wno-c99-designator in MacOS Change-Id: I4d95c75915b17531bdd6d9161eb266bb91cd7bef Signed-off-by: Nikos Nikoleris Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33775 Reviewed-by: Gabe Black Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/SConstruct b/SConstruct index d229ab8e3..4e47bdaeb 100755 --- a/SConstruct +++ b/SConstruct @@ -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: