From d03f7ae79ddda0ad228b17048b9e2dc0efcc8e95 Mon Sep 17 00:00:00 2001 From: Jorge Villatoro <104654122+voxeljorge@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:12:39 -0700 Subject: [PATCH] fix: builds using preinstalled_make no longer break during pkgconfig (#1307) --- foreign_cc/built_tools/pkgconfig_build.bzl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/foreign_cc/built_tools/pkgconfig_build.bzl b/foreign_cc/built_tools/pkgconfig_build.bzl index e74d638c..9ad30e78 100644 --- a/foreign_cc/built_tools/pkgconfig_build.bzl +++ b/foreign_cc/built_tools/pkgconfig_build.bzl @@ -88,7 +88,10 @@ def _pkgconfig_tool_impl(ctx): "%s install" % make_data.path, ] - additional_tools = depset(transitive = [make_data.target.files]) + if make_data.target: + additional_tools = depset(transitive = [make_data.target.files]) + else: + additional_tools = depset() return built_tool_rule_impl( ctx,