Skip to content

Commit 52fcc41

Browse files
authored
Add flag for Xcode config migration in Bazel 8+ (#96)
Related to: bazelbuild/bazel@26c6add and bazelbuild/apple_support#332 (comment)
1 parent 570c512 commit 52fcc41

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

features.bzl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
load("@bazel_features_globals//:globals.bzl", "globals")
44
load("//private:util.bzl", "ge", "ge_same_major", "lt")
55

6+
_apple = struct(
7+
# From Bazel 8.0.0 on, the `xcode_version_flag` is available and the `XcodeVersionConfig`
8+
# signature changed to migrate Xcode configuration to Starlark.
9+
# https://github.com/bazelbuild/bazel/commit/26c6add3f9809611ad3795bce1e5c0fb37902902
10+
xcode_config_migrated = ge("8.0.0"),
11+
)
12+
613
_cc = struct(
714
# Whether @bazel_tools//tools/cpp:optional_current_cc_toolchain and the `mandatory` parameter
815
# on find_cpp_toolchain are available (#17308).
@@ -125,6 +132,7 @@ _toolchains = struct(
125132
)
126133

127134
bazel_features = struct(
135+
apple = _apple,
128136
cc = _cc,
129137
docs = _docs,
130138
external_deps = _external_deps,

0 commit comments

Comments
 (0)