Skip to content

Commit cd98170

Browse files
authored
Add new darwin CC toolchain for tests (bazel-contrib#3460)
With bazel 7.x the darwin toolchain that supports iOS / Objective-C is moving out of bazel and into apple_support. This adds that toolchain since it's exercised for tests.
1 parent d72f35b commit cd98170

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
build --enable_platform_specific_config
2+
build:macos --apple_crosstool_top=@local_config_apple_cc//:toolchain
3+
build:macos --crosstool_top=@local_config_apple_cc//:toolchain
4+
build:macos --host_crosstool_top=@local_config_apple_cc//:toolchain
5+
16
build:windows --cpu=x64_windows
27
build:windows --compiler=mingw-gcc
38

WORKSPACE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,17 @@ http_archive(
164164
load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
165165

166166
stardoc_repositories()
167+
168+
# For testing objc_library interop, users should not need to install it
169+
http_archive(
170+
name = "build_bazel_apple_support",
171+
sha256 = "77a121a0f5d4cd88824429464ad2bfb54bdc8a3bccdb4d31a6c846003a3f5e44",
172+
url = "https://github.com/bazelbuild/apple_support/releases/download/1.4.1/apple_support.1.4.1.tar.gz",
173+
)
174+
175+
load(
176+
"@build_bazel_apple_support//lib:repositories.bzl",
177+
"apple_support_dependencies",
178+
)
179+
180+
apple_support_dependencies()

0 commit comments

Comments
 (0)