From f77e258cb9c2aad7fe81f7489d5fa8ff0f269899 Mon Sep 17 00:00:00 2001 From: Duy Nguyen Date: Wed, 14 May 2025 01:27:46 +0700 Subject: [PATCH] cmake: Set RX build use 64bit doubles as default The RX floating-point hardware only works on 32-bit values so default gcc will build doubles as 32-bit, this make many test fail on RX build test. This commit force the build for RX arch to use 64-bit doubles FPU will be supported later on this arch Signed-off-by: Duy Nguyen --- cmake/compiler/gcc/target_rx.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compiler/gcc/target_rx.cmake b/cmake/compiler/gcc/target_rx.cmake index 6911b0cda72..b4a4895fa90 100644 --- a/cmake/compiler/gcc/target_rx.cmake +++ b/cmake/compiler/gcc/target_rx.cmake @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 list(APPEND TOOLCHAIN_C_FLAGS) -list(APPEND TOOLCHAIN_C_FLAGS -mlittle-endian-data -ffunction-sections -fdata-sections) +list(APPEND TOOLCHAIN_C_FLAGS -mlittle-endian-data -ffunction-sections -fdata-sections -m64bit-doubles) list(APPEND TOOLCHAIN_LD_FLAGS) list(APPEND TOOLCHAIN_LD_FLAGS -mlittle-endian-data)