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}


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}
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D55378: [compiler-r... Michał Górny via Phabricator via cfe-commits

Reply via email to