[libc-commits] [libc] a4f3a10 - [libc] Include features.h in baremetal targets (#109444)

via libc-commits libc-commits at lists.llvm.org
Tue Nov 12 23:46:24 PST 2024


Author: Petr Hosek
Date: 2024-11-12T23:46:20-08:00
New Revision: a4f3a10c0effa165071ad43cf8690e1762897533

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

LOG: [libc] Include features.h in baremetal targets (#109444)

This is used by other libraries like libc++.

Added: 
    

Modified: 
    libc/config/baremetal/arm/headers.txt
    libc/config/baremetal/riscv/headers.txt

Removed: 
    


################################################################################
diff  --git a/libc/config/baremetal/arm/headers.txt b/libc/config/baremetal/arm/headers.txt
index 28fd1ce9128d25..6cc8a80455d3ac 100644
--- a/libc/config/baremetal/arm/headers.txt
+++ b/libc/config/baremetal/arm/headers.txt
@@ -2,6 +2,7 @@ set(TARGET_PUBLIC_HEADERS
     libc.include.assert
     libc.include.ctype
     libc.include.errno
+    libc.include.features
     libc.include.fenv
     libc.include.float
     libc.include.inttypes

diff  --git a/libc/config/baremetal/riscv/headers.txt b/libc/config/baremetal/riscv/headers.txt
index 3608364e45bdeb..c4fa24f025a71f 100644
--- a/libc/config/baremetal/riscv/headers.txt
+++ b/libc/config/baremetal/riscv/headers.txt
@@ -1,13 +1,14 @@
 set(TARGET_PUBLIC_HEADERS
     libc.include.assert
     libc.include.ctype
-    libc.include.fenv
     libc.include.errno
+    libc.include.features
+    libc.include.fenv
     libc.include.float
-    libc.include.stdint
     libc.include.inttypes
     libc.include.math
     libc.include.stdfix
+    libc.include.stdint
     libc.include.stdio
     libc.include.stdlib
     libc.include.string


        


More information about the libc-commits mailing list