blob: 9fe32ac6fb166ccbc14c1df89a498b4b2b4bb3b7 [file] [log] [blame]
: # If you want to use a local build of fuzztest, you must clone the fuzztest repo in this directory.
: # The odd choice of comment style in this file is to try to share this script between *nix and win32.
: # cmake must be in your PATH.
: # If you're running this on Windows, be sure you've already run this (from your VC2019 install dir):
: # "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvars64.bat"
git clone https://github.com/google/fuzztest.git
cd fuzztest
: # There is no tagged release as of 2024/01/26. Pick the earliest commit that fixes
: # a validation bug in FlatMapImpl.
git checkout b39227cb001a46ed007fa37e40507d777652ede9
sed -i 's/-fsanitize=address//g' ./cmake/FuzzTestFlagSetup.cmake
sed -i 's/-DADDRESS_SANITIZER//g' ./cmake/FuzzTestFlagSetup.cmake
: # fuzztest is built by the main CMake project through add_subdirectory as recommended at:
: # https://github.com/google/fuzztest/blob/main/doc/quickstart-cmake.md