Skip to content

Commit e383d75

Browse files
committed
Change condition and reformat
1 parent 5b13c01 commit e383d75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

compiler-rt/test/builtins/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)