[libc-commits] [libc] bd40421 - [libc] Stop installing `sys/types.h` when not requested (#119765)

via libc-commits libc-commits at lists.llvm.org
Thu Dec 12 13:39:14 PST 2024


Author: Joseph Huber
Date: 2024-12-12T15:39:10-06:00
New Revision: bd40421ad9ec5ecc164f8208caf3ba5657977e17

URL: https://github.com/llvm/llvm-project/commit/bd40421ad9ec5ecc164f8208caf3ba5657977e17
DIFF: https://github.com/llvm/llvm-project/commit/bd40421ad9ec5ecc164f8208caf3ba5657977e17.diff

LOG: [libc] Stop installing `sys/types.h` when not requested (#119765)

Summary:
This is installed unconditionally because of the dependency in the
`hdr/` directory. Remove this so it's only used on the systems that need
it.

Added: 
    

Modified: 
    libc/hdr/types/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/hdr/types/CMakeLists.txt b/libc/hdr/types/CMakeLists.txt
index 68a0e9603f9752..ce3ecefe364383 100644
--- a/libc/hdr/types/CMakeLists.txt
+++ b/libc/hdr/types/CMakeLists.txt
@@ -137,7 +137,6 @@ add_proxy_header_library(
     clockid_t.h
   FULL_BUILD_DEPENDS
     libc.include.llvm-libc-types.clockid_t
-    libc.include.sys_types
 )
 
 add_proxy_header_library(
@@ -173,7 +172,6 @@ add_proxy_header_library(
     pid_t.h
   FULL_BUILD_DEPENDS
     libc.include.llvm-libc-types.pid_t
-    libc.include.sys_types
 )
 
 add_proxy_header_library(


        


More information about the libc-commits mailing list