Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Make FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION depend on optim…
…ize_for_fuzzing GN arg." This reverts commit 2b4c029. FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION, introduced in r452783, is the documented macro to be used by code that should behave differently when targeting fuzzers. Since r562499, this macro is only defined when when optimize_for_fuzzing=true is used. In r597184, optimize_for_fuzzing was made impossible to use on Windows. As a result of all of this, FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION doesn't work on Windows because there is no build configuration that results in it being set. This CL resolves the problem by making FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION conditional only on use_fuzzing_engine=true so that it is set for all builds that target fuzzers. Fixed: 1483560 Change-Id: I29a20f42e222b4547ed5191014289582dd058d86 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4874264 Reviewed-by: Jonathan Metzman <[email protected]> Commit-Queue: Greg Thompson <[email protected]> Reviewed-by: Dirk Pranke <[email protected]> Cr-Commit-Position: refs/heads/main@{#1201378}
- Loading branch information