Skip to content

Commit 679c0e4

Browse files
Googlercopybara-github
authored andcommitted
Migrate rules_cc _xcode_config to apple_support version_config
Migrates unix_cc_toolchain_config in rules_cc from legacy configuration_field(fragment = "apple", name = "xcode_config_label") to //third_party/bazel_rules/apple_support/xcode:version_config. Also bumps the minimum Bazel version in examples/rule_based_toolchain to 7.7.0 since 7.2.1 is incompatible with apple_support 2.8.0 (requires Bazel >= 7.4.0). PiperOrigin-RevId: 960379134 Change-Id: Ie8d2cd1f397d6e61538f5429299fbd4dbe1d4bbd
1 parent db79849 commit 679c0e4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎MODULE.bazel‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module(
44
compatibility_level = 1,
55
)
66

7+
bazel_dep(name = "apple_support", version = "2.8.0")
78
bazel_dep(name = "bazel_features", version = "1.50.0")
89
bazel_dep(name = "bazel_skylib", version = "1.8.0")
910
bazel_dep(name = "platforms", version = "0.0.10")

‎cc/private/toolchain/unix_cc_toolchain_config.bzl‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,10 +2109,9 @@ This is only offered as a migration bridge for projects transitioning to rule-ba
21092109
"_use_libtool_on_macos": attr.label(
21102110
default = "@rules_cc//cc/toolchains/args/archiver_flags:use_libtool_on_macos",
21112111
),
2112-
"_xcode_config": attr.label(default = configuration_field(
2113-
fragment = "apple",
2114-
name = "xcode_config_label",
2115-
)),
2112+
"_xcode_config": attr.label(
2113+
default = "@apple_support//xcode:version_config",
2114+
),
21162115
},
21172116
fragments = ["cpp"],
21182117
provides = [CcToolchainConfigInfo],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.2.1
1+
7.7.0

0 commit comments

Comments
 (0)