Index: cmake/modules/AddLLVM.cmake =================================================================== --- cmake/modules/AddLLVM.cmake +++ cmake/modules/AddLLVM.cmake @@ -1268,8 +1268,10 @@ return() endif() - if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY AND LLVM_BUILD_TOOLS ) - llvm_install_symlink(${name} ${dest}) + if (${name} IN_LIST LLVM_TOOLCHAIN_TOOLS OR NOT LLVM_INSTALL_TOOLCHAIN_ONLY) + if (LLVM_BUILD_TOOLS) + llvm_install_symlink(${name} ${dest}) + endif() endif() endif() endfunction()