summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/test/ubsan/CMakeLists.txt
blob: 7a9eacdbe7df36e933f92d14e43a6ce87cc12f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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)
OpenPOWER on IntegriCloud