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@users.noreply.github.com>
This commit is contained in:
Andarwinux 2025-01-29 05:09:14 +00:00 committed by GitHub
parent b28e879a83
commit ab6d41eae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)