mirror of
https://github.com/apache/nuttx.git
synced 2026-03-24 07:35:07 +08:00
Kconfig:Add an option to disable compilation of floating point related files
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
8
Kconfig
8
Kconfig
@@ -567,6 +567,14 @@ config ARCH_FLOAT_H
|
||||
there is no assurance that the settings in this float.h are actually
|
||||
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
|
||||
bool
|
||||
default n
|
||||
|
||||
@@ -1207,6 +1207,12 @@
|
||||
# undef CONFIG_FS_LARGEFILE
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DISABLE_FLOAT
|
||||
# undef CONFIG_HAVE_FLOAT
|
||||
# undef CONFIG_HAVE_DOUBLE
|
||||
# undef CONFIG_HAVE_LONG_DOUBLE
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user