Skip to content

Commit

Permalink
Explicitly specify fuzztest repo in bazel macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Rakowski committed Jan 17, 2024
1 parent 895ea48 commit 07040e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build_defs/cc_fuzztest_grammar_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"],
)

0 comments on commit 07040e9

Please sign in to comment.