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
|
2020-02-20 14:32:28 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -I /usr/local/include/c++/v1 -fsanitize=undefined -fsanitize=fuzzer-no-link -stdlib=libc++" CACHE STRING "Custom compilation flags" FORCE)
|
|
|
|
# Link statically against boost libraries
|
|
|
|
set(BOOST_FOUND ON CACHE BOOL "" FORCE)
|
|
|
|
set(Boost_USE_STATIC_LIBS ON CACHE BOOL "Link against static Boost libraries" FORCE)
|
|
|
|
set(Boost_USE_STATIC_RUNTIME ON CACHE BOOL "Link against static Boost runtime library" FORCE)
|