[libc-commits] [PATCH] D146970: [libc] Install GPU headers to `gpu-none-llvm/` subfolder

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Mar 28 12:27:50 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG465f4ac9d7c4: [libc] Install GPU headers to `gpu-none-llvm/` subfolder (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146970

Files:
  libc/include/CMakeLists.txt


Index: libc/include/CMakeLists.txt
===================================================================
--- libc/include/CMakeLists.txt
+++ libc/include/CMakeLists.txt
@@ -511,6 +511,11 @@
   endif()
   file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_BINARY_DIR} ${header_file})
   get_filename_component(nested_dir ${relative_path} DIRECTORY)
+  # The GPU headers are installed to 'gpu-none-llvm/' to prevent shadowing the
+  # system headers.
+  if(LIBC_TARGET_ARCHITECTURE_IS_GPU)
+    set(nested_dir gpu-none-llvm/${nested_dir})
+  endif()
   install(FILES ${header_file}
           DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${nested_dir}
           COMPONENT libc-headers)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146970.509097.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230328/1ac5ebca/attachment.bin>


More information about the libc-commits mailing list