From 14ded03b9c835e9ccba6a20f0944729dccab8d9b Mon Sep 17 00:00:00 2001 From: Caleb Zulawski Date: Tue, 19 Sep 2023 13:47:35 -0400 Subject: [PATCH] Advertise CcInfo provider (#1095) --- foreign_cc/boost_build.bzl | 1 + foreign_cc/cmake.bzl | 1 + foreign_cc/make.bzl | 1 + foreign_cc/meson.bzl | 1 + foreign_cc/ninja.bzl | 1 + 5 files changed, 5 insertions(+) diff --git a/foreign_cc/boost_build.bzl b/foreign_cc/boost_build.bzl index 89c0c550..d8e489f3 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 13aca9b1..d781dcdc 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 0691e0fb..fcdd8a5c 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 ee489bf1..7b26f75b 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 b59b2d13..9b872e62 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",