diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt index 64c9f23805509..61989c6cccf57 100644 --- a/lld/CMakeLists.txt +++ b/lld/CMakeLists.txt @@ -189,7 +189,10 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) endif() add_subdirectory(Common) -add_subdirectory(tools/lld) + +if (LLD_BUILD_TOOLS) + add_subdirectory(tools/lld) +endif() if (LLVM_INCLUDE_TESTS) add_custom_target(LLDUnitTests)