Don't install clang-import-test
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Tue, 23 Jun 2020 16:31:47 +0000 (17:31 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 24 Jun 2020 11:24:43 +0000 (12:24 +0100)
I have been trying to reduce the installed size of our CHERI toolchain and
noticed that this tool was being installed even with -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON.
This appears to be a test binary that should not be installed.

Reviewed By: v.g.vassilev
Differential Revision: https://reviews.llvm.org/D82169

clang/tools/clang-import-test/CMakeLists.txt

index 39a5c41..4ccc2d7 100644 (file)
@@ -7,7 +7,7 @@ if(NOT CLANG_BUILT_STANDALONE)
   set(tablegen_deps intrinsics_gen)
 endif()
 
-add_clang_tool(clang-import-test
+add_clang_executable(clang-import-test
   clang-import-test.cpp
   DEPENDS
   ${tablegen_deps}