Skip to content

Commit

Permalink
Add all_fuzz_tests build target (#1605)
Browse files Browse the repository at this point in the history
### Description of changes: 
* Add build target for compiling all fuzz tests

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
  • Loading branch information
justsmth authored May 30, 2024
1 parent 8eb5656 commit 7572352
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Declare a dummy target to build all fuzz tests.
add_custom_target(all_fuzz_tests)

macro(fuzzer name)
add_executable(${name} ${name}.cc)
target_compile_options(${name} PRIVATE "-Wno-missing-prototypes")
Expand All @@ -9,6 +12,7 @@ macro(fuzzer name)
else()
set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=fuzzer")
endif()
add_dependencies(all_fuzz_tests ${name})
endmacro()

fuzzer(arm_cpuinfo)
Expand Down

0 comments on commit 7572352

Please sign in to comment.