[CMake] Add fuzzer as a component for runtime builds
authorChris Bieneman <chris.bieneman@me.com>
Fri, 19 Apr 2019 20:13:25 +0000 (20:13 +0000)
committerChris Bieneman <chris.bieneman@me.com>
Fri, 19 Apr 2019 20:13:25 +0000 (20:13 +0000)
Calling `add_compiler_rt_component` sets up the component connection between runtime builds and the parent CMake configuration. Adding this call allows specifying `fuzzer` as a `LLVM_RUNTIME_DISTRIBUTION_COMPONENT`.

llvm-svn: 358780

compiler-rt/lib/fuzzer/CMakeLists.txt

index aa62995e72985b4e588e4e108a731518201ea269..602f332974f9d9d0487e8cb9445e8eacbbf05ac8 100644 (file)
@@ -84,6 +84,8 @@ endif()
 
 set(FUZZER_SUPPORTED_OS ${SANITIZER_COMMON_SUPPORTED_OS})
 
+add_compiler_rt_component(fuzzer)
+
 add_compiler_rt_object_libraries(RTfuzzer
   OS ${FUZZER_SUPPORTED_OS}
   ARCHS ${FUZZER_SUPPORTED_ARCH}