From 07040e90415731af8d49613b7cb28cb5c37b76dc Mon Sep 17 00:00:00 2001 From: Tim Rakowski Date: Wed, 17 Jan 2024 21:42:25 +0100 Subject: [PATCH] Explicitly specify fuzztest repo in bazel macros --- build_defs/cc_fuzztest_grammar_library.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_defs/cc_fuzztest_grammar_library.bzl b/build_defs/cc_fuzztest_grammar_library.bzl index ea8de65e..657958c6 100644 --- a/build_defs/cc_fuzztest_grammar_library.bzl +++ b/build_defs/cc_fuzztest_grammar_library.bzl @@ -33,7 +33,7 @@ def cc_fuzztest_grammar_library(name, srcs, top_level_rule = None): """ output_file_name = name + ".h" - cmd = "$(location //tools:grammar_domain_code_generator)" + \ + cmd = "$(location @com_google_fuzztest//tools:grammar_domain_code_generator)" + \ " --output_header_file_path " + "$(@D)/" + output_file_name + \ " --input_grammar_files " + "`echo $(SRCS) | tr ' ' ','`" if top_level_rule: @@ -45,11 +45,11 @@ def cc_fuzztest_grammar_library(name, srcs, top_level_rule = None): outs = [output_file_name], cmd = cmd, heuristic_label_expansion = False, - tools = ["//tools:grammar_domain_code_generator"], + tools = ["@com_google_fuzztest//tools:grammar_domain_code_generator"], ) native.cc_library( name = name, hdrs = [output_file_name], - deps = ["//fuzztest:domain"], + deps = ["@com_google_fuzztest//fuzztest:domain"], )