Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly specify @com_google_fuzztest repo in cc_fuzztest_grammar_library bazel macro #913

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 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"],
)