From 6bd0a394c29796dc01753caa72e4abcb466bf93b Mon Sep 17 00:00:00 2001 From: Nikos Nikoleris Date: Mon, 31 Aug 2020 08:19:09 +0300 Subject: [PATCH] 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 --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.30.2