mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user