[libc-commits] [libc] [libc] Enable floating point support for baremetal printf (PR #101912)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Sun Aug 4 16:44:25 PDT 2024


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/101912

It's somewhat common for baremetal projects to use floating point so printf support is actually desirable.

>From 293ad92edb7dacae8e99d4b5ad90ae3e59795fa7 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Sun, 4 Aug 2024 16:40:25 -0700
Subject: [PATCH] [libc] Enable floating point support for baremetal printf

It's somewhat common for baremetal projects to use floating point so
printf support is actually desirable.
---
 libc/config/baremetal/config.json | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libc/config/baremetal/config.json b/libc/config/baremetal/config.json
index f0ff268b56275..f5b260d805c93 100644
--- a/libc/config/baremetal/config.json
+++ b/libc/config/baremetal/config.json
@@ -5,9 +5,6 @@
     }
   },
   "printf": {
-    "LIBC_CONF_PRINTF_DISABLE_FLOAT": {
-      "value": true
-    },
     "LIBC_CONF_PRINTF_DISABLE_INDEX_MODE": {
       "value": true
     },



More information about the libc-commits mailing list