Advertise CcInfo provider (#1095)

This commit is contained in:
Caleb Zulawski 2023-09-19 13:47:35 -04:00 committed by GitHub
parent 60813d57a0
commit 14ded03b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,7 @@ boost_build = rule(
attrs = _attrs(),
fragments = CC_EXTERNAL_RULE_FRAGMENTS,
output_to_genfiles = True,
provides = [CcInfo],
implementation = _boost_build_impl,
toolchains = [
"@rules_foreign_cc//foreign_cc/private/framework:shell_toolchain",

View File

@ -418,6 +418,7 @@ cmake = rule(
"@rules_foreign_cc//foreign_cc/private/framework:shell_toolchain",
"@bazel_tools//tools/cpp:toolchain_type",
],
provides = [CcInfo],
# TODO: Remove once https://github.com/bazelbuild/bazel/issues/11584 is closed and the min supported
# version is updated to a release of Bazel containing the new default for this setting.
incompatible_use_toolchain_transition = True,

View File

@ -125,6 +125,7 @@ make = rule(
attrs = _attrs(),
fragments = CC_EXTERNAL_RULE_FRAGMENTS,
output_to_genfiles = True,
provides = [CcInfo],
implementation = _make,
toolchains = [
"@rules_foreign_cc//toolchains:make_toolchain",

View File

@ -149,6 +149,7 @@ meson = rule(
attrs = _attrs(),
fragments = CC_EXTERNAL_RULE_FRAGMENTS,
output_to_genfiles = True,
provides = [CcInfo],
implementation = _meson_impl,
toolchains = [
"@rules_foreign_cc//toolchains:meson_toolchain",

View File

@ -111,6 +111,7 @@ ninja = rule(
attrs = _attrs(),
fragments = CC_EXTERNAL_RULE_FRAGMENTS,
output_to_genfiles = True,
provides = [CcInfo],
implementation = _ninja_impl,
toolchains = [
"@rules_foreign_cc//toolchains:ninja_toolchain",