diff --git a/foreign_cc/boost_build.bzl b/foreign_cc/boost_build.bzl index 89c0c5509..d8e489f39 100644 --- a/foreign_cc/boost_build.bzl +++ b/foreign_cc/boost_build.bzl @@ -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", diff --git a/foreign_cc/cmake.bzl b/foreign_cc/cmake.bzl index 13aca9b1e..d781dcdc5 100644 --- a/foreign_cc/cmake.bzl +++ b/foreign_cc/cmake.bzl @@ -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, diff --git a/foreign_cc/make.bzl b/foreign_cc/make.bzl index 0691e0fbe..fcdd8a5cf 100644 --- a/foreign_cc/make.bzl +++ b/foreign_cc/make.bzl @@ -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", diff --git a/foreign_cc/meson.bzl b/foreign_cc/meson.bzl index ee489bf13..7b26f75bd 100644 --- a/foreign_cc/meson.bzl +++ b/foreign_cc/meson.bzl @@ -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", diff --git a/foreign_cc/ninja.bzl b/foreign_cc/ninja.bzl index b59b2d130..9b872e622 100644 --- a/foreign_cc/ninja.bzl +++ b/foreign_cc/ninja.bzl @@ -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",