File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1011,7 +1011,8 @@ else ()
10111011
10121012 # For RISCV32 and 32-bit SPARC, we must force enable int128 for compiling long
10131013 # double routines.
1014- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" OR ("${arch} " STREQUAL "sparc" AND NOT CMAKE_COMPILER_IS_GNUCC))
1014+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR ("${arch} " MATCHES "riscv32|sparc$"
1015+ AND NOT CMAKE_COMPILER_IS_GNUCC))
10151016 list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128)
10161017 endif ()
10171018
Original file line number Diff line number Diff line change @@ -48,7 +48,8 @@ foreach(arch ${BUILTIN_TEST_ARCH})
4848 string (REPLACE ";" " " BUILTINS_TEST_TARGET_CFLAGS "${BUILTINS_TEST_TARGET_CFLAGS} " )
4949 endif ()
5050
51- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " MATCHES "riscv32|sparc$" AND NOT CMAKE_COMPILER_IS_GNUCC)
51+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR ("${arch} " MATCHES "riscv32|sparc$"
52+ AND NOT CMAKE_COMPILER_IS_GNUCC))
5253 list (APPEND BUILTINS_TEST_TARGET_CFLAGS -fforce-enable-int128)
5354 string (REPLACE ";" " " BUILTINS_TEST_TARGET_CFLAGS "${BUILTINS_TEST_TARGET_CFLAGS} " )
5455 endif ()
You can’t perform that action at this time.
0 commit comments