Skip to content

Commit e95355c

Browse files
[libc] Add CMake Target for Dl_info.h Header (#156195)
Otherwise when installing the dlfcn.h header, there is a missing reference to Dl_info.h, which causes compilation failures in some cases, notably libunwind.
1 parent a3c41dd commit e95355c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc/include/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ add_header_macro(
7070
dlfcn.h
7171
DEPENDS
7272
.llvm_libc_common_h
73+
.llvm-libc-types.dl_info
7374
)
7475

7576
add_header_macro(

libc/include/llvm-libc-types/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ add_header(stack_t HDR stack_t.h DEPENDS .size_t)
7272
add_header(suseconds_t HDR suseconds_t.h)
7373
add_header(struct_dirent HDR struct_dirent.h DEPENDS .ino_t .off_t)
7474
add_header(struct_dl_phdr_info HDR struct_dl_phdr_info.h DEPENDS .size_t libc.include.llvm-libc-macros.link_macros)
75+
add_header(dl_info HDR Dl_info.h)
7576
add_header(struct_f_owner_ex HDR struct_f_owner_ex.h DEPENDS .pid_t)
7677
add_header(struct_flock HDR struct_flock.h DEPENDS .off_t .pid_t)
7778
add_header(struct_flock64 HDR struct_flock64.h DEPENDS .off64_t .pid_t)

0 commit comments

Comments
 (0)