From 60e7a0074df6d2b57a613359afb86e86632a0dce Mon Sep 17 00:00:00 2001 From: cuiziwei Date: Fri, 15 Mar 2024 10:05:42 +0800 Subject: [PATCH] nuttx/arch:Enabling ARCH_MATH_H is required when compiling sim with the 13.2 version of the toolchain. Signed-off-by: cuiziwei Signed-off-by: ligd --- arch/Kconfig | 1 + boards/sim/sim/sim/configs/citest/defconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index 4f63fbbbfc..f7a23b1733 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -121,6 +121,7 @@ config ARCH_SIM select SERIAL_IFLOWCONTROL select SCHED_HPWORK select ARCH_HAVE_CPUINFO + select ARCH_MATH_H if LIBCXX ---help--- Linux/Cygwin user-mode simulation. diff --git a/boards/sim/sim/sim/configs/citest/defconfig b/boards/sim/sim/sim/configs/citest/defconfig index d3041e790e..185c010e6e 100644 --- a/boards/sim/sim/sim/configs/citest/defconfig +++ b/boards/sim/sim/sim/configs/citest/defconfig @@ -14,7 +14,6 @@ CONFIG_ARCH="sim" CONFIG_ARCH_BOARD="sim" CONFIG_ARCH_BOARD_SIM=y CONFIG_ARCH_CHIP="sim" -CONFIG_ARCH_MATH_H=y CONFIG_ARCH_SIM=y CONFIG_BOARDCTL_APP_SYMTAB=y CONFIG_BOARDCTL_POWEROFF=y