Kconfig:Add an option to disable compilation of floating point related files

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2024-06-03 20:06:23 +08:00
committed by Xiang Xiao
parent 16c90ada1c
commit 0bd9c8d7ae
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -567,6 +567,14 @@ config ARCH_FLOAT_H
there is no assurance that the settings in this float.h are actually there is no assurance that the settings in this float.h are actually
correct for your platform! correct for your platform!
config DISABLE_FLOAT
bool "Disable floating point"
default n
---help---
Disable floating point support in the compiler. This will reduce
code size and increase performance. This option is only available
on some architectures.
config ARCH_HAVE_STDARG_H config ARCH_HAVE_STDARG_H
bool bool
default n default n
+6
View File
@@ -1207,6 +1207,12 @@
# undef CONFIG_FS_LARGEFILE # undef CONFIG_FS_LARGEFILE
#endif #endif
#ifdef CONFIG_DISABLE_FLOAT
# undef CONFIG_HAVE_FLOAT
# undef CONFIG_HAVE_DOUBLE
# undef CONFIG_HAVE_LONG_DOUBLE
#endif
/**************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
****************************************************************************/ ****************************************************************************/