[libc-commits] [libc] [libc] Make all targets respect LLVM_PER_TARGET_RUNTIME_DIR (PR #160597)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 24 13:14:53 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Joseph Huber (jhuber6)
<details>
<summary>Changes</summary>
Summary:
The libcxx and compiler-rt already install their headers according
to the triple if this option is enabled. We should do this by default so
these don't get mixed up when people potentially combine multiple
toolchains.
---
Full diff: https://github.com/llvm/llvm-project/pull/160597.diff
1 Files Affected:
- (modified) libc/CMakeLists.txt (+1-1)
``````````diff
diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index 4f3704ec9aa9b..14718e2090bde 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -246,7 +246,7 @@ else()
set(LIBC_INCLUDE_DIR ${CMAKE_BINARY_DIR}/include)
set(LIBC_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
endif()
- if(LIBC_TARGET_OS_IS_GPU)
+ if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
if(LIBC_TARGET_TRIPLE)
set(LIBC_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${LIBC_TARGET_TRIPLE})
else()
``````````
</details>
https://github.com/llvm/llvm-project/pull/160597
More information about the libc-commits
mailing list