[libc-commits] [libc] [libc] Add CMake Target for Dl_info.h Header (PR #156195)
Aiden Grossman via libc-commits
libc-commits at lists.llvm.org
Sat Aug 30 11:22:44 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/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.
>From 0db384ce9de65395a4442c995f46e0f728ddbe72 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sat, 30 Aug 2025 18:20:54 +0000
Subject: [PATCH] [libc] Add CMake Target for Dl_info.h Header
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.
---
libc/include/CMakeLists.txt | 1 +
libc/include/llvm-libc-types/CMakeLists.txt | 1 +
2 files changed, 2 insertions(+)
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 74fcea0f15e2f..8fd37b0ee5ad6 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -70,6 +70,7 @@ add_header_macro(
dlfcn.h
DEPENDS
.llvm_libc_common_h
+ .llvm-libc-types.dl_info
)
add_header_macro(
diff --git a/libc/include/llvm-libc-types/CMakeLists.txt b/libc/include/llvm-libc-types/CMakeLists.txt
index 451beae6f1e6f..fe9e4e397666e 100644
--- a/libc/include/llvm-libc-types/CMakeLists.txt
+++ b/libc/include/llvm-libc-types/CMakeLists.txt
@@ -72,6 +72,7 @@ add_header(stack_t HDR stack_t.h DEPENDS .size_t)
add_header(suseconds_t HDR suseconds_t.h)
add_header(struct_dirent HDR struct_dirent.h DEPENDS .ino_t .off_t)
add_header(struct_dl_phdr_info HDR struct_dl_phdr_info.h DEPENDS .size_t libc.include.llvm-libc-macros.link_macros)
+add_header(dl_info HDR Dl_info.h)
add_header(struct_f_owner_ex HDR struct_f_owner_ex.h DEPENDS .pid_t)
add_header(struct_flock HDR struct_flock.h DEPENDS .off_t .pid_t)
add_header(struct_flock64 HDR struct_flock64.h DEPENDS .off64_t .pid_t)
More information about the libc-commits
mailing list