summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/tests
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-12-06 20:04:08 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-12-06 20:04:08 +0000
commitef4b600301e9b5c3cf07c0c5efa812fc08cf7131 (patch)
treeee65c1900a207204f33a93f1876216b3f3c5fda1 /compiler-rt/lib/fuzzer/tests
parent03a3ef2a0c93291d4abefac80b5189eb55da864f (diff)
downloadbcm5719-llvm-ef4b600301e9b5c3cf07c0c5efa812fc08cf7131.tar.gz
bcm5719-llvm-ef4b600301e9b5c3cf07c0c5efa812fc08cf7131.zip
[test] Add missing cmake include for building libFuzzer alone
Include CompilerRTCompile in fuzzer tests explicitly. Otherwise, when building only libFuzzer, CMake fails due to: CMake Error at cmake/Modules/AddCompilerRT.cmake:395 (sanitizer_test_compile): Unknown CMake command "sanitizer_test_compile". Call Stack (most recent call first): lib/fuzzer/tests/CMakeLists.txt:53 (generate_compiler_rt_tests) Differential Revision: https://reviews.llvm.org/D55378 llvm-svn: 348524
Diffstat (limited to 'compiler-rt/lib/fuzzer/tests')
-rw-r--r--compiler-rt/lib/fuzzer/tests/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
index 2a293487a69..6abb72def3e 100644
--- a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
+++ b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
@@ -1,3 +1,5 @@
+include(CompilerRTCompile)
+
set(LIBFUZZER_UNITTEST_CFLAGS
${COMPILER_RT_UNITTEST_CFLAGS}
${COMPILER_RT_GTEST_CFLAGS}
OpenPOWER on IntegriCloud