-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
80 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
# Use C++ 20. | ||
build --cxxopt=-std=c++20 | ||
build --host_cxxopt=-std=c++20 | ||
|
||
# Force the use of Clang for all builds. FuzzTest relies on Clang for sanitizer | ||
# coverage (https://clang.llvm.org/docs/SanitizerCoverage.html). | ||
build --action_env=CC=clang | ||
build --action_env=CXX=clang++ | ||
|
||
# Show everything when running tests. | ||
test --test_output=streamed | ||
|
||
# To create this file, please run: | ||
# | ||
# bazel run @com_google_fuzztest//bazel:setup_configs > fuzztest.bazelrc | ||
# | ||
try-import %workspace%/fuzztest.bazelrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Don't track lock files. | ||
*.lock | ||
|
||
# Don't track Bazel output folders. | ||
bazel-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
### DO NOT EDIT. Generated file. | ||
# | ||
# To regenerate, run the following from your project's workspace: | ||
# | ||
# bazel run @com_google_fuzztest//bazel:setup_configs > fuzztest.bazelrc | ||
# | ||
# And don't forget to add the following to your project's .bazelrc: | ||
# | ||
# try-import %workspace%/fuzztest.bazelrc | ||
### Common options. | ||
# | ||
# Do not use directly. | ||
|
||
# Standard define for \"ifdef-ing\" any fuzz test specific code. | ||
build:fuzztest-common --copt=-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION | ||
|
||
# In fuzz tests, we want to catch assertion violations even in optimized builds. | ||
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 | ||
### ASan (Address Sanitizer) build configuration. | ||
# | ||
# Use with: --config=asan | ||
|
||
build:asan --linkopt=-fsanitize=address | ||
build:asan --copt=-fsanitize=address | ||
### FuzzTest build configuration. | ||
# | ||
# Use with: --config=fuzztest | ||
# | ||
# Note that this configuration includes the ASan configuration. | ||
|
||
build:fuzztest --config=asan | ||
build:fuzztest --config=fuzztest-common | ||
|
||
# Link statically. | ||
build:fuzztest --dynamic_mode=off | ||
|
||
# We rely on the following flag instead of the compiler provided | ||
# __has_feature(address_sanitizer) to know that we have an ASAN build even in | ||
# the uninstrumented runtime. | ||
build:fuzztest --copt=-DADDRESS_SANITIZER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters