From d39fb16bd4da9c1f08e1bd84ecbe388328d1a921 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Sat, 26 Oct 2024 16:07:08 +0900 Subject: [PATCH] Fix MinGW toolchain install with 'install-llvm-toolchain' When MinGW LLVM Embedded Toolchain for Arm is installed using the `install-llvm-toolchain` target, the MinGW-built toolchain executables are not installed under the prefix because `llvm-toolchain-mingw` component is added to the `LLVM_TOOLCHAIN_DISTRIBUTION_COMPONENTS_ALL` variable, which is never referenced. Fix this by enumerating `LLVM_TOOLCHAIN_DISTRIBUTION_COMPONENTS_ALL` as intended. Signed-off-by: Stephanos Ioannidis --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cefbcb35..47b58f7f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2195,7 +2195,7 @@ set(LLVM_TOOLCHAIN_DISTRIBUTION_COMPONENTS_ALL ${LLVM_TOOLCHAIN_DISTRIBUTION_COM if(LLVM_TOOLCHAIN_CROSS_BUILD_MINGW) list(APPEND LLVM_TOOLCHAIN_DISTRIBUTION_COMPONENTS_ALL llvm-toolchain-mingw) endif() -foreach(component ${LLVM_TOOLCHAIN_DISTRIBUTION_COMPONENTS}) +foreach(component ${LLVM_TOOLCHAIN_DISTRIBUTION_COMPONENTS_ALL}) add_custom_target( install-${component} COMMAND