[libc-commits] [libc] cb807ff - [libc] Fix GPU include install directory
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Mar 1 17:29:10 PST 2024
Author: Joseph Huber
Date: 2024-03-01T19:28:59-06:00
New Revision: cb807ff3d3fd4eb72f2c6151001c2366d2725815
URL: https://github.com/llvm/llvm-project/commit/cb807ff3d3fd4eb72f2c6151001c2366d2725815
DIFF: https://github.com/llvm/llvm-project/commit/cb807ff3d3fd4eb72f2c6151001c2366d2725815.diff
LOG: [libc] Fix GPU include install directory
Added:
Modified:
libc/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt
index 7c7322e3043393..0b72b1c5481651 100644
--- a/libc/CMakeLists.txt
+++ b/libc/CMakeLists.txt
@@ -232,7 +232,7 @@ else()
set(LIBC_LIBRARY_DIR ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX})
endif()
if(LIBC_TARGET_OS_IS_GPU)
- set(LIBC_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${LIBC_TARGET_TRIPLE})
+ set(LIBC_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${LLVM_DEFAULT_TARGET_TRIPLE})
else()
set(LIBC_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR})
endif()
@@ -240,7 +240,7 @@ endif()
if(LIBC_TARGET_TRIPLE)
set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX}/${LIBC_TARGET_TRIPLE})
-elseif(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT LIBC_GPU_BUILD)
+elseif(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
set(LIBC_INSTALL_LIBRARY_DIR
lib${LLVM_LIBDIR_SUFFIX}/${LLVM_DEFAULT_TARGET_TRIPLE})
else()
More information about the libc-commits
mailing list