[llvm] Add llvm-driver to the list of toolchain tools (PR #123083)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 25 14:46:25 PST 2025
https://github.com/Andarwinux updated https://github.com/llvm/llvm-project/pull/123083
>From 6c2e5a0b2ba67f80299beb6818c7679d4e4e1109 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 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