[libc-commits] [libc] [libc] implement pathconf/fpathconf (PR #87165)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Thu May 16 21:11:54 PDT 2024


================
@@ -174,7 +174,7 @@ add_entrypoint_object(
     .${LIBC_TARGET_OS}.pathconf
 )
 
-add_header_library(
+add_entrypoint_object(
----------------
SchrodingerZhu wrote:

To my understanding
- header library: header-only (`.h` files), does not generate object file
- object library: source files (`.cpp` files), generate object files
- entrypoint: similar to object library but it is used to expose symbols to userspace

Here you have a common library that has its own translation units (so object files are generated), and it is used in internal usage, not to expose symbols. So, object library would be proper.

https://github.com/llvm/llvm-project/pull/87165


More information about the libc-commits mailing list