[libc-commits] [libc] 3b37151 - [libc][NFC] remove staled header libraries (#192656)
via libc-commits
libc-commits at lists.llvm.org
Mon Apr 20 07:06:48 PDT 2026
Author: Schrodinger ZHU Yifan
Date: 2026-04-20T10:06:42-04:00
New Revision: 3b37151c84924c71736b56969273e6577f6b4662
URL: https://github.com/llvm/llvm-project/commit/3b37151c84924c71736b56969273e6577f6b4662
DIFF: https://github.com/llvm/llvm-project/commit/3b37151c84924c71736b56969273e6577f6b4662.diff
LOG: [libc][NFC] remove staled header libraries (#192656)
Remove staled header library declaration in cmake:
```
[cmake] CMake Error in /home/schrodingerzy/Documents/llvm-project/libc/src/__support/OSUtil/linux/CMakeLists.txt:
[cmake] Cannot find source file:
[cmake]
[cmake] /home/schrodingerzy/Documents/llvm-project/libc/src/__support/OSUtil/linux/getrandom.h
[cmake]
[cmake]
[cmake] CMake Error in /home/schrodingerzy/Documents/llvm-project/libc/src/__support/CMakeLists.txt:
[cmake] Cannot find source file:
[cmake]
[cmake] /home/schrodingerzy/Documents/llvm-project/libc/src/__support/bit.h
[cmake]
[cmake]
[cmake] -- Build files have been written to: /home/schrodingerzy/Documents/llvm-project/build
```
Added:
Modified:
libc/src/__support/CMakeLists.txt
libc/src/__support/OSUtil/linux/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt
index 6cc3682fbb4cf..fe59cc04cc929 100644
--- a/libc/src/__support/CMakeLists.txt
+++ b/libc/src/__support/CMakeLists.txt
@@ -105,15 +105,6 @@ add_header_library(
libc.hdr.stdint_proxy
)
-add_header_library(
- bit
- HDRS
- bit.h
- DEPENDS
- libc.src.__support.macros.attributes
- libc.src.__support.CPP.type_traits
-)
-
add_header_library(
math_extras
HDRS
diff --git a/libc/src/__support/OSUtil/linux/CMakeLists.txt b/libc/src/__support/OSUtil/linux/CMakeLists.txt
index 8a686d4bce7dc..b02fa141fa456 100644
--- a/libc/src/__support/OSUtil/linux/CMakeLists.txt
+++ b/libc/src/__support/OSUtil/linux/CMakeLists.txt
@@ -38,19 +38,6 @@ add_header_library(
libc.src.__support.threads.callonce
)
-add_header_library(
- getrandom
- HDRS
- getrandom.h
- DEPENDS
- libc.src.__support.OSUtil.osutil
- libc.src.__support.common
- libc.src.__support.error_or
- libc.src.__support.macros.config
- libc.hdr.types.ssize_t
- libc.include.sys_syscall
-)
-
add_header_library(
vdso_sym
HDRS
More information about the libc-commits
mailing list