[PATCH] D55378: [compiler-rt] [test] Add missing cmake include for building libFuzzer alone

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 6 11:11:24 PST 2018


mgorny created this revision.
mgorny added reviewers: phosek, george.karpenkov.
Herald added subscribers: Sanitizers, llvm-commits, dberris.

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)


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D55378

Files:
  lib/fuzzer/tests/CMakeLists.txt


Index: lib/fuzzer/tests/CMakeLists.txt
===================================================================
--- lib/fuzzer/tests/CMakeLists.txt
+++ lib/fuzzer/tests/CMakeLists.txt
@@ -1,3 +1,5 @@
+include(CompilerRTCompile)
+
 set(LIBFUZZER_UNITTEST_CFLAGS
   ${COMPILER_RT_UNITTEST_CFLAGS}
   ${COMPILER_RT_GTEST_CFLAGS}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55378.177017.patch
Type: text/x-patch
Size: 321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181206/c3932a48/attachment-0001.bin>


More information about the cfe-commits mailing list