Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mojo/private/utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def _package_relative_label(ctx, label):

if label.startswith(":"):
# Relative path
label = "//" + ctx.label.package + label
label = "@@" + ctx.label.repo_name + "//" + ctx.label.package + label
elif label.startswith("//"):
label = "@@" + ctx.label.repo_name + label
return Label(label)

def _extract_label(ctx, copt):
Expand Down Expand Up @@ -131,6 +133,6 @@ def handle_copt(ctx, copt, args):
fail("expected exactly one file")
args.add(files[0], format = format_string)
return
fail("input not found in additional_compiler_inputs")
fail("input {} not found in additional_compiler_inputs".format(label))
else:
args.add(copt)
Loading