Skip to content

Commit e4b15fc

Browse files
committed
[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.
1 parent aab3d13 commit e4b15fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/cmake/modules/LLVMLibCHeaderRules.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ function(add_gen_header target_name)
141141

142142
if(LIBC_TARGET_OS_IS_GPU)
143143
file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/llvm-libc-decls)
144+
file(MAKE_DIRECTORY ${LIBC_INCLUDE_DIR}/llvm-libc-decls/gpu)
144145
set(decl_out_file ${LIBC_INCLUDE_DIR}/llvm-libc-decls/${relative_path})
145146
add_custom_command(
146147
OUTPUT ${decl_out_file}

0 commit comments

Comments
 (0)