[libc-commits] [PATCH] D142774: [libc] Do not install to the default triple in GPU mode

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jan 27 12:06:17 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8583291dfc43: [libc] Do not install to the default triple in GPU mode (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142774/new/

https://reviews.llvm.org/D142774

Files:
  libc/lib/CMakeLists.txt


Index: libc/lib/CMakeLists.txt
===================================================================
--- libc/lib/CMakeLists.txt
+++ libc/lib/CMakeLists.txt
@@ -11,7 +11,7 @@
 
 if(LIBC_TARGET_TRIPLE)
   set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX}/${LIBC_TARGET_TRIPLE})
-elseif(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
+elseif(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR AND NOT LIBC_GPU_BUILD)
   set(LIBC_INSTALL_LIBRARY_DIR
       lib${LLVM_LIBDIR_SUFFIX}/${LLVM_DEFAULT_TARGET_TRIPLE})
 else()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142774.492874.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230127/60a4428b/attachment.bin>


More information about the libc-commits mailing list