mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Add fuzzer instrumentation when building fuzzers
Without this the fuzzing is unguided and takes exponentially more time to find interesting corpus cases. Change-Id: I1b66de153bc41a829a5276a02a729f4e6bb50ef0 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/33722 Reviewed-by: David Neto <dneto@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
1b543c6778
commit
12ed862c7e
@@ -14,20 +14,9 @@
|
||||
|
||||
function(add_tint_fuzzer NAME)
|
||||
add_executable(${NAME} ${NAME}.cc)
|
||||
target_link_libraries(${NAME} libtint)
|
||||
target_link_libraries(${NAME} libtint-fuzz)
|
||||
tint_default_compile_options(${NAME})
|
||||
target_link_options(${NAME} PRIVATE
|
||||
-fno-omit-frame-pointer
|
||||
-fsanitize=fuzzer,address,undefined
|
||||
-fsanitize-address-use-after-scope
|
||||
-O1
|
||||
-g
|
||||
)
|
||||
|
||||
target_compile_options(${NAME} PRIVATE
|
||||
-fsanitize=fuzzer,address,undefined
|
||||
-Wno-missing-prototypes
|
||||
)
|
||||
target_compile_options(${NAME} PRIVATE -Wno-missing-prototypes)
|
||||
endfunction()
|
||||
|
||||
if (${TINT_BUILD_WGSL_READER})
|
||||
|
||||
Reference in New Issue
Block a user