From ab5e59d99872c7c8eb4e24f46908eebe6981bd7d Mon Sep 17 00:00:00 2001 From: jheaff1 Date: Sat, 26 Nov 2022 21:36:46 +0000 Subject: [PATCH] Add runfiles of dependency tools to the build This is required by dependents of the built pkgconfig toolchain --- foreign_cc/private/framework.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/foreign_cc/private/framework.bzl b/foreign_cc/private/framework.bzl index 3c0b1104b..bf37804ef 100644 --- a/foreign_cc/private/framework.bzl +++ b/foreign_cc/private/framework.bzl @@ -481,6 +481,9 @@ def cc_external_rule_impl(ctx, attrs): for data in data_dependencies: tool_runfiles += data[DefaultInfo].default_runfiles.files.to_list() + for tool in attrs.tools_deps: + tool_runfiles += tool[DefaultInfo].default_runfiles.files.to_list() + ctx.actions.run_shell( mnemonic = "Cc" + attrs.configure_name.capitalize() + "MakeRule", inputs = depset(inputs.declared_inputs),