mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Assume libFuzzer when LIB_FUZZING_ENGINE file doesn't exist
i.e. environment variable may be set, but not point to existing file
This commit is contained in:
parent
2ef182076e
commit
a4244bc72b
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ if ( NOT DEFINED ZEEK_FUZZING_ENGINE AND DEFINED ENV{LIB_FUZZING_ENGINE} )
|
||||||
# Looks like a linker flag or valid file, use it
|
# Looks like a linker flag or valid file, use it
|
||||||
set(ZEEK_FUZZING_ENGINE "$ENV{LIB_FUZZING_ENGINE}" CACHE INTERNAL "" FORCE)
|
set(ZEEK_FUZZING_ENGINE "$ENV{LIB_FUZZING_ENGINE}" CACHE INTERNAL "" FORCE)
|
||||||
else ()
|
else ()
|
||||||
message(FATAL_ERROR "Invalid LIB_FUZZING_ENGINE: '$ENV{LIB_FUZZING_ENGINE}'")
|
message(WARNING "$ENV{LIB_FUZZING_ENGINE} does not exist, assume libFuzzer")
|
||||||
|
set(ZEEK_FUZZING_ENGINE "-fsanitize=fuzzer" CACHE INTERNAL "" FORCE)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue