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

via libc-commits libc-commits at lists.llvm.org
Fri Sep 20 09:43:34 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

<details>
<summary>Changes</summary>

This is used by other libraries like libc++.

---
Full diff: https://github.com/llvm/llvm-project/pull/109444.diff


2 Files Affected:

- (modified) libc/config/baremetal/arm/headers.txt (+1) 
- (modified) libc/config/baremetal/riscv/headers.txt (+3-2) 


``````````diff
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

``````````

</details>


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


More information about the libc-commits mailing list