[libc-commits] [libc] e4b15fc - [libc] Fix '/gpu' directory not being made for the declarations
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Mar 1 20:26:49 PST 2024
Author: Joseph Huber
Date: 2024-03-01T22:26:42-06:00
New Revision: e4b15fc854b6eaebe63ba3acfcd39bf6dd7748b5
URL: https://github.com/llvm/llvm-project/commit/e4b15fc854b6eaebe63ba3acfcd39bf6dd7748b5
DIFF: https://github.com/llvm/llvm-project/commit/e4b15fc854b6eaebe63ba3acfcd39bf6dd7748b5.diff
LOG: [libc] Fix '/gpu' directory not being made for the declarations
Summary:
We use this extra directory for offloading languages like CUDA or
OpenMP. We made the '/gpu' directory for the regular headers but not the
others. Fix that for now.
Added:
Modified:
libc/cmake/modules/LLVMLibCHeaderRules.cmake
Removed:
################################################################################
diff --git a/libc/cmake/modules/LLVMLibCHeaderRules.cmake b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
index 19515b1cbcc185..7fc6860f23eb2e 100644
--- a/libc/cmake/modules/LLVMLibCHeaderRules.cmake
+++ b/libc/cmake/modules/LLVMLibCHeaderRules.cmake
@@ -141,6 +141,7 @@ function(add_gen_header target_name)
if(LIBC_TARGET_OS_IS_GPU)
file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/llvm-libc-decls)
+ file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/llvm-libc-decls/gpu)
set(decl_out_file ${LIBC_INCLUDE_DIR}/llvm-libc-decls/${relative_path})
add_custom_command(
OUTPUT ${decl_out_file}
More information about the libc-commits
mailing list