Skip to content

Commit f77e258

Browse files
duynguyenxakartben
authored andcommitted
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 <[email protected]>
1 parent 8a5c744 commit f77e258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/compiler/gcc/target_rx.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
list(APPEND TOOLCHAIN_C_FLAGS)
4-
list(APPEND TOOLCHAIN_C_FLAGS -mlittle-endian-data -ffunction-sections -fdata-sections)
4+
list(APPEND TOOLCHAIN_C_FLAGS -mlittle-endian-data -ffunction-sections -fdata-sections -m64bit-doubles)
55

66
list(APPEND TOOLCHAIN_LD_FLAGS)
77
list(APPEND TOOLCHAIN_LD_FLAGS -mlittle-endian-data)

0 commit comments

Comments
 (0)