Skip to content

Commit

Permalink
Add llvm-driver to the list of toolchain tools
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Andarwinux committed Jan 16, 2025
1 parent 8965dd4 commit 7fa35d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7fa35d7

Please sign in to comment.