[llvm] Add llvm-driver to the list of toolchain tools (PR #123083)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 08:46:40 PST 2025
https://github.com/Andarwinux created https://github.com/llvm/llvm-project/pull/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
>From 58c6d294d2acaef27c62e1c29c8a9196521db872 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