|
|
|
### 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.
|
|
|
|
|
|
|
|
# Compile and link with Address Sanitizer (ASAN).
|
|
|
|
build:fuzztest-common --linkopt=-fsanitize=address
|
|
|
|
build:fuzztest-common --copt=-fsanitize=address
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
### FuzzTest build configuration.
|
|
|
|
#
|
|
|
|
# Use with: --config=fuzztest
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# We apply coverage tracking instrumentation to everything but the
|
|
|
|
# FuzzTest framework itself (including GoogleTest and GoogleMock).
|
|
|
|
build:fuzztest --per_file_copt=+//,-fuzztest/.*,-googletest/.*,-googlemock/.*@-fsanitize-coverage=inline-8bit-counters,-fsanitize-coverage=trace-cmp
|
|
|
|
|