[llvm] Add llvm-driver to the list of toolchain tools (PR #123083)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 08:49:28 PST 2025


https://github.com/Andarwinux updated https://github.com/llvm/llvm-project/pull/123083

>From ebe757a2254a9ab111cadee65c766d81e07d3a74 Mon Sep 17 00:00:00 2001
From: Andarwinux <Andarwinux at users.noreply.github.com>
Date: Wed, 15 Jan 2025 00:00:00 +0000
Subject: [PATCH] Add llvm-driver to the list of toolchain tools

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
---
 llvm/cmake/modules/AddLLVM.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index e046e3798e544b..cab597044ecb90 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