Skip to content

Commit b7e20c7

Browse files
authored
[libc] Make all targets respect LLVM_PER_TARGET_RUNTIME_DIR (#160597)
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.
1 parent fae54a0 commit b7e20c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ else()
246246
set(LIBC_INCLUDE_DIR ${CMAKE_BINARY_DIR}/include)
247247
set(LIBC_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
248248
endif()
249-
if(LIBC_TARGET_OS_IS_GPU)
249+
if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
250250
if(LIBC_TARGET_TRIPLE)
251251
set(LIBC_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${LIBC_TARGET_TRIPLE})
252252
else()

0 commit comments

Comments
 (0)