[llvm] ab6d41e - Add llvm-driver to the list of toolchain tools (#123083)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 21:09:17 PST 2025
Author: Andarwinux
Date: 2025-01-28T21:09:14-08:00
New Revision: ab6d41eae12b29bcb99ed66ca8edb48296ccfe42
URL: https://github.com/llvm/llvm-project/commit/ab6d41eae12b29bcb99ed66ca8edb48296ccfe42
DIFF: https://github.com/llvm/llvm-project/commit/ab6d41eae12b29bcb99ed66ca8edb48296ccfe42.diff
LOG: Add llvm-driver to the list of toolchain tools (#123083)
If LLVM_TOOL_LLVM_DRIVER_BUILD is enabled, make sure
LLVM_TOOLCHAIN_TOOLS includes llvm-driver, otherwise with
LLVM_INSTALL_TOOLCHAIN_ONLY will install an invalid toolchain
Co-authored-by: Andarwinux <Andarwinux at users.noreply.github.com>
Added:
Modified:
llvm/cmake/modules/AddLLVM.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index d3e9377c8d2f7e..baf47677b247cd 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -1472,6 +1472,9 @@ if(NOT LLVM_TOOLCHAIN_TOOLS)
if (LLVM_ENABLE_LIBXML2)
list(APPEND LLVM_TOOLCHAIN_TOOLS llvm-mt)
endif()
+ if (LLVM_TOOL_LLVM_DRIVER_BUILD)
+ list(APPEND LLVM_TOOLCHAIN_TOOLS llvm-driver)
+ endif()
endif()
macro(llvm_add_tool project name)
More information about the llvm-commits
mailing list