From ecbb18886deb001f73659fd353b68bf926ffe247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=20Do=C3=A3n?= Date: Tue, 16 Feb 2021 21:45:15 +0900 Subject: [PATCH 1/2] Explicitly set --macos_minimum_os=10.15 to make `swift_{binary,test}` runnable on macOS Catalina (which is the macOS version used by Bazel CI) when building with Xcode 12 or above Since there's no way to set the deployment version for `*_{binary,test}`, this makes rules_swift on CI green again without having to go back to using Xcode 11.7. --- .bazelrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .bazelrc diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 000000000..c90a14ec9 --- /dev/null +++ b/.bazelrc @@ -0,0 +1 @@ +build --macos_minimum_os=10.15 From 700b53b8771232c365d4568a04e4c6a083160230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thi=20Do=C3=A3n?= Date: Wed, 17 Feb 2021 07:23:58 +0900 Subject: [PATCH 2/2] Add a reason why --macos_minimum_os flag is needed here --- .bazelrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bazelrc b/.bazelrc index c90a14ec9..1f52e460b 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1 +1,4 @@ +# Since there's no way to set the deployment version for swift_{binary,test}, +# this forces all targets' minimum macOS to Catalina until Bazel CI has +# upgraded their Mac machines to Big Sur. build --macos_minimum_os=10.15