mirror of
https://github.com/nlohmann/json.git
synced 2024-12-30 09:07:51 +08:00
b21c345179
* 🚚 move files * 🚚 rename doc folder to docs * 🚚 rename test folder to tests
16 lines
394 B
CMake
16 lines
394 B
CMake
# These tests are instrumented with ubsan in non-recovery mode.
|
|
|
|
set(CMAKE_CXX_FLAGS
|
|
"${LIBFUZZER_FLAGS_BASE} -fsanitize=undefined -fno-sanitize-recover=all")
|
|
|
|
set(UbsanTests
|
|
SignedIntOverflowTest
|
|
)
|
|
|
|
foreach(Test ${UbsanTests})
|
|
add_libfuzzer_test(${Test}-Ubsan SOURCES ../${Test}.cpp)
|
|
endforeach()
|
|
|
|
# Propagate value into parent directory
|
|
set(TestBinaries ${TestBinaries} PARENT_SCOPE)
|