Skip to content

Commit f8454d6

Browse files
committed
[AIX][compiler-rt][builtins] Don't add ppc builtin implementations that require __int128 on AIX
since __int128 currently isn't supported on AIX. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D85972
1 parent 2002bb4 commit f8454d6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,8 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES}
553553

554554
set(powerpc64_SOURCES
555555
ppc/divtc3.c
556-
ppc/fixtfti.c
557556
ppc/fixtfdi.c
558-
ppc/fixunstfti.c
559557
ppc/fixunstfdi.c
560-
ppc/floattitf.c
561558
ppc/floatditf.c
562559
ppc/floatunditf.c
563560
ppc/gcc_qadd.c
@@ -567,6 +564,15 @@ set(powerpc64_SOURCES
567564
ppc/multc3.c
568565
${GENERIC_SOURCES}
569566
)
567+
# These routines require __int128, which isn't supported on AIX.
568+
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
569+
set(powerpc64_SOURCES
570+
ppc/floattitf.c
571+
ppc/fixtfti.c
572+
ppc/fixunstfti.c
573+
${powerpc64_SOURCES}
574+
)
575+
endif()
570576
set(powerpc64le_SOURCES ${powerpc64_SOURCES})
571577

572578
set(riscv_SOURCES ${GENERIC_SOURCES} ${GENERIC_TF_SOURCES})

0 commit comments

Comments
 (0)