Skip to content

Commit

Permalink
spirv-tools: Add fuzz target for spirv-fuzz
Browse files Browse the repository at this point in the history
Adds a fuzz target to test the spirv-fuzz testing tool.
  • Loading branch information
afd committed Jan 4, 2022
1 parent f12147c commit cab5214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/spirv-tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git clone https://dawn.googlesource.com/tint --depth=1
mkdir build
pushd build

CMAKE_ARGS="-DSPIRV_BUILD_LIBFUZZER_TARGETS=ON -DSPIRV_LIB_FUZZING_ENGINE_LINK_OPTIONS=$LIB_FUZZING_ENGINE"
CMAKE_ARGS="-DSPIRV_BUILD_FUZZER=ON -DSPIRV_BUILD_LIBFUZZER_TARGETS=ON -DSPIRV_LIB_FUZZING_ENGINE_LINK_OPTIONS=$LIB_FUZZING_ENGINE"

# With ubsan, RTTI must be enabled due to certain checks (vptr) requiring it.
if [ $SANITIZER == "undefined" ];
Expand All @@ -34,6 +34,7 @@ ninja

SPIRV_BINARY_FUZZERS="spvtools_binary_parser_fuzzer\
spvtools_dis_fuzzer\
spvtools_fuzz_fuzzer\
spvtools_opt_legalization_fuzzer\
spvtools_opt_performance_fuzzer\
spvtools_opt_size_fuzzer\
Expand Down

0 comments on commit cab5214

Please sign in to comment.