Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bazel-*
MODULE.bazel.lock
2 changes: 0 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
module(
name = "fuzztest",
version = "head",
# TODO(lszekeres): Remove and use default name.
repo_name = "com_google_fuzztest",
)

bazel_dep(
Expand Down
8 changes: 4 additions & 4 deletions bazel/setup_configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cat <<EOF
#
# To regenerate, run the following from your project's workspace:
#
# bazel run @com_google_fuzztest//bazel:setup_configs > fuzztest.bazelrc
# bazel run @fuzztest//bazel:setup_configs > fuzztest.bazelrc
#
# And don't forget to add the following to your project's .bazelrc:
#
Expand All @@ -29,8 +29,8 @@ build:fuzztest-common --copt=-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
build:fuzztest-common --copt=-UNDEBUG

# Enable libc++ assertions.
# See https://libcxx.llvm.org/UsingLibcxx.html#enabling-the-safe-libc-mode
build:fuzztest-common --copt=-D_LIBCPP_ENABLE_ASSERTIONS=1
# See https://libcxx.llvm.org/Hardening.html
build:fuzztest-common --copt=-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE

EOF

Expand Down Expand Up @@ -95,7 +95,7 @@ cat <<EOF
# want to use both, you can use --config=fuzztest-experimental --config=asan.

build:fuzztest-experimental --config=fuzztest-common
build:fuzztest-experimental --@com_google_fuzztest//fuzztest:centipede_integration
build:fuzztest-experimental --@fuzztest//fuzztest:centipede_integration

# Generate line tables for debugging.
build:fuzztest-experimental --copt=-gline-tables-only
Expand Down
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 @@ -39,7 +39,7 @@ def cc_fuzztest_grammar_library(name, srcs, top_level_rule = None, insert_whites
"""

output_file_name = name + ".h"
cmd = "$(location @com_google_fuzztest//tools:grammar_domain_code_generator)" + \
cmd = "$(location @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 @@ -52,10 +52,10 @@ def cc_fuzztest_grammar_library(name, srcs, top_level_rule = None, insert_whites
outs = [output_file_name],
cmd = cmd,
heuristic_label_expansion = False,
tools = ["@com_google_fuzztest//tools:grammar_domain_code_generator"],
tools = ["@fuzztest//tools:grammar_domain_code_generator"],
)
cc_library(
name = name,
hdrs = [output_file_name],
deps = ["@com_google_fuzztest//fuzztest/internal/domains:in_grammar_impl"],
deps = ["@fuzztest//fuzztest/internal/domains:in_grammar_impl"],
)
Loading
Loading