[PATCH] D151503: [CUDA] correctly install cuda_wrappers/bits/shared_ptr_base.h
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 30 10:13:34 PDT 2023
tra updated this revision to Diff 526697.
tra added a comment.
Updated according to comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151503/new/
https://reviews.llvm.org/D151503
Files:
clang/lib/Headers/CMakeLists.txt
Index: clang/lib/Headers/CMakeLists.txt
===================================================================
--- clang/lib/Headers/CMakeLists.txt
+++ clang/lib/Headers/CMakeLists.txt
@@ -267,6 +267,9 @@
cuda_wrappers/cmath
cuda_wrappers/complex
cuda_wrappers/new
+)
+
+set(cuda_wrapper_bits_files
cuda_wrappers/bits/shared_ptr_base.h
)
@@ -328,7 +331,8 @@
# Copy header files from the source directory to the build directory
-foreach( f ${files} ${cuda_wrapper_files} ${ppc_wrapper_files} ${openmp_wrapper_files} ${hlsl_files})
+foreach( f ${files} ${cuda_wrapper_files} ${cuda_wrapper_bits_files}
+ ${ppc_wrapper_files} ${openmp_wrapper_files} ${hlsl_files})
copy_header_to_output_dir(${CMAKE_CURRENT_SOURCE_DIR} ${f})
endforeach( f )
@@ -429,7 +433,7 @@
# Architecture/platform specific targets
add_header_target("arm-resource-headers" "${arm_only_files};${arm_only_generated_files}")
add_header_target("aarch64-resource-headers" "${aarch64_only_files};${aarch64_only_generated_files}")
-add_header_target("cuda-resource-headers" "${cuda_files};${cuda_wrapper_files}")
+add_header_target("cuda-resource-headers" "${cuda_files};${cuda_wrapper_files};${cuda_wrapper_bits_files}")
add_header_target("hexagon-resource-headers" "${hexagon_files}")
add_header_target("hip-resource-headers" "${hip_files}")
add_header_target("loongarch-resource-headers" "${loongarch_files}")
@@ -463,6 +467,11 @@
DESTINATION ${header_install_dir}/cuda_wrappers
COMPONENT clang-resource-headers)
+install(
+ FILES ${cuda_wrapper_bits_files}
+ DESTINATION ${header_install_dir}/cuda_wrappers/bits
+ COMPONENT clang-resource-headers)
+
install(
FILES ${ppc_wrapper_files}
DESTINATION ${header_install_dir}/ppc_wrappers
@@ -505,6 +514,12 @@
EXCLUDE_FROM_ALL
COMPONENT cuda-resource-headers)
+install(
+ FILES ${cuda_wrapper_bits_files}
+ DESTINATION ${header_install_dir}/cuda_wrappers/bits
+ EXCLUDE_FROM_ALL
+ COMPONENT cuda-resource-headers)
+
install(
FILES ${cuda_files}
DESTINATION ${header_install_dir}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151503.526697.patch
Type: text/x-patch
Size: 2063 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230530/89bac420/attachment.bin>
More information about the cfe-commits
mailing list