[llvm] [runtimes] Add a missing LLVM_LIBDIR_SUFFIX (PR #159758)
Tulio Magno Quites Machado Filho via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 07:23:15 PDT 2025
https://github.com/tuliom updated https://github.com/llvm/llvm-project/pull/159758
>From 103ee672d7bf4ac909143b902d6cc41d3b3424e0 Mon Sep 17 00:00:00 2001
From: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
Date: Fri, 19 Sep 2025 08:03:08 -0300
Subject: [PATCH] [runtimes] Add a missing LLVM_LIBDIR_SUFFIX
Ensure that LLVM_LIBRARY_DIR uses LLVM_LIBDIR_SUFFIX.
This fixes issues when the OS prefers to install libraries under lib64,
for example.
---
runtimes/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt
index 45a6517737b95..7a7e0d274015e 100644
--- a/runtimes/CMakeLists.txt
+++ b/runtimes/CMakeLists.txt
@@ -74,7 +74,7 @@ endif()
if (NOT LLVM_FOUND)
set(LLVM_TOOLS_BINARY_DIR ${LLVM_BINARY_DIR}/bin)
set(LLVM_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/include)
- set(LLVM_LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/lib)
+ set(LLVM_LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
endif()
# Setting these variables will allow the sub-build to put their outputs into
More information about the llvm-commits
mailing list