2019-08-14 10:42:35 +00:00
|
|
|
# Inherit default options
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/default.cmake")
|
2019-09-24 12:31:22 +00:00
|
|
|
# Enable Z3, disable CVC4
|
|
|
|
set(USE_Z3 ON CACHE BOOL "Enable Z3" FORCE)
|
2019-09-16 14:18:27 +00:00
|
|
|
set(USE_CVC4 OFF CACHE BOOL "Disable CVC4" FORCE)
|
2019-08-14 10:42:35 +00:00
|
|
|
# Build fuzzing binaries
|
2019-09-16 14:18:27 +00:00
|
|
|
set(OSSFUZZ ON CACHE BOOL "Enable fuzzer build" FORCE)
|
|
|
|
# Use libfuzzer as the fuzzing back-end
|
|
|
|
set(LIB_FUZZING_ENGINE "-fsanitize=fuzzer" CACHE STRING "Use libfuzzer back-end" FORCE)
|
2020-02-11 09:13:37 +00:00
|
|
|
# clang/libfuzzer specific flags for UBSan instrumentation
|
|
|
|
set(CMAKE_CXX_FLAGS "-O1 -gline-tables-only -fsanitize=undefined -fsanitize=fuzzer-no-link -stdlib=libstdc++" CACHE STRING "Custom compilation flags" FORCE)
|