Skip to content

Commit

Permalink
Reference @google_com_fuzztest inside the cc_fuzztest_grammar_library.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 652707836
  • Loading branch information
akuegel authored and copybara-github committed Jul 16, 2024
1 parent 2c70883 commit 40c8e09
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 @@ -37,7 +37,7 @@ def cc_fuzztest_grammar_library(name, srcs, top_level_rule = None, insert_whites
"""

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 + \
(" --insert_whitespace" if insert_whitespace else " --noinsert_whitespace") + \
" --input_grammar_files " + "`echo $(SRCS) | tr ' ' ','`"
Expand All @@ -50,11 +50,11 @@ def cc_fuzztest_grammar_library(name, srcs, top_level_rule = None, insert_whites
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 40c8e09

Please sign in to comment.