From 7a5638cf098d51de68297084689492f7435d0445 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Wed, 24 Sep 2025 15:08:34 -0500 Subject: [PATCH] [libc] Make all targets respect LLVM_PER_TARGET_RUNTIME_DIR 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. --- libc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()