Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia committed Oct 25, 2024
1 parent a00685b commit 124ceed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions bazel/conf/.bazelrc.build
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ build:check --output_groups=build_metadata

# Fuzzing configuration
build:fuzzing --action_env="SANITIZERS_ENABLED=1"
# sanitizers are only supported in nightly
build:fuzzing --@rules_rust//rust/toolchain/channel=nightly
build:fuzzing --build_tag_filters=fuzz_test
# Ignoring transitions for now since it doesn't add any additional improvement to current setup
build:fuzzing --//bazel:enable_fuzzing_code=True

Expand Down
5 changes: 4 additions & 1 deletion bazel/fuzz_testing.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ def rust_fuzz_test_binary(name, srcs, rustc_flags = [], sanitizers = [], crate_f
proc_macro_deps = proc_macro_deps,
deps = deps,
rustc_flags = rustc_flags + RUSTC_FLAGS_LIBFUZZER + sanitizers,
rustc_env = {
"RUSTC_BOOTSTRAP": "1",
},
tags = [
# Makes sure this target is not run in normal CI builds. It would fail due to non-nightly Rust toolchain.
# Used to filter out fuzzer tests
"fuzz_test",
"libfuzzer",
],
Expand Down

0 comments on commit 124ceed

Please sign in to comment.