mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
621 B
CMake
12 lines
621 B
CMake
# Inherit default options
|
|
include("${CMAKE_CURRENT_LIST_DIR}/default.cmake")
|
|
# Enable Z3, disable CVC4
|
|
set(USE_Z3 ON CACHE BOOL "Enable Z3" FORCE)
|
|
set(USE_CVC4 OFF CACHE BOOL "Disable CVC4" FORCE)
|
|
# Build fuzzing binaries
|
|
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)
|
|
# 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)
|