Skip to content

Commit

Permalink
Add toolchains to rules that use `@bazel_tools//tools/cpp:toolchain…
Browse files Browse the repository at this point in the history
…_type`

Signed-off-by: Matt Robinson <mattrob@hey.com>
  • Loading branch information
mattrobmattrob committed Dec 7, 2023
1 parent 789a862 commit ca2c2ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions rules/apple_patched.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def _apple_framework_import_modulemap_impl(ctx):

_apple_framework_import_modulemap = rule(
implementation = _apple_framework_import_modulemap_impl,
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
fragments = ["apple"],
attrs = {
"legacy_target": attr.label(
Expand Down
1 change: 1 addition & 0 deletions rules/framework.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,7 @@ def _apple_framework_packaging_impl(ctx):

apple_framework_packaging = rule(
implementation = _apple_framework_packaging_impl,
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
cfg = transition_support.apple_rule_transition,
fragments = ["apple", "cpp", "objc"],
output_to_genfiles = True,
Expand Down
1 change: 1 addition & 0 deletions rules/framework/vfs_overlay.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ def make_vfsoverlay(ctx, hdrs, module_map, private_hdrs, has_swift, swiftmodules

framework_vfs_overlay = rule(
implementation = _framework_vfs_overlay_impl,
toolchains = ["@bazel_tools//tools/cpp:toolchain_type"],
attrs = {
"framework_name": attr.string(mandatory = True),
"extra_search_paths": attr.string(mandatory = False),
Expand Down

0 comments on commit ca2c2ac

Please sign in to comment.