Skip to content

Commit d03f7ae

Browse files
authored
fix: builds using preinstalled_make no longer break during pkgconfig (#1307)
1 parent 07f78a4 commit d03f7ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

foreign_cc/built_tools/pkgconfig_build.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ def _pkgconfig_tool_impl(ctx):
8888
"%s install" % make_data.path,
8989
]
9090

91-
additional_tools = depset(transitive = [make_data.target.files])
91+
if make_data.target:
92+
additional_tools = depset(transitive = [make_data.target.files])
93+
else:
94+
additional_tools = depset()
9295

9396
return built_tool_rule_impl(
9497
ctx,

0 commit comments

Comments
 (0)