Skip to content

Commit

Permalink
pigweed: Fix sapphire fuzzers (google#12938)
Browse files Browse the repository at this point in the history
Sapphire's fuzzers use a set of test fakes that depend on gTest. This PR
adds a Bazel flag to include gTest instead of the "light" pw_unit_test
framework.

Bug: 382721836
  • Loading branch information
nopsledder authored Jan 14, 2025
1 parent 5a93222 commit 83d864e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/pigweed/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ let lang_fuzz_tests = attr(generator_function, \"pw_cc_fuzz_test\", \$all_fuzz_t
\$lang_fuzz_tests - attr(tags, \"no-oss-fuzz\", \$lang_fuzz_tests)
"

export BAZEL_EXTRA_BUILD_FLAGS="--config non_hermetic --cxxopt=-std=c++17"
export BAZEL_EXTRA_BUILD_FLAGS="
--config non_hermetic
--cxxopt=-std=c++17
--config=googletest
"

bazel_build_fuzz_tests

0 comments on commit 83d864e

Please sign in to comment.