From 06f1d63cb16c4d7ec66eac3cdb6ae1f53aee5450 Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Fri, 26 Nov 2021 13:29:06 -0800 Subject: [PATCH] [compiler-rt][CMake] Support powerpcspe build Reviewed By: jhibbits, MaskRay Differential Revision: https://reviews.llvm.org/D98836 --- compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake | 2 +- compiler-rt/cmake/builtin-config-ix.cmake | 2 +- compiler-rt/lib/builtins/CMakeLists.txt | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake index 9a96202c72d4..45226b4158d7 100644 --- a/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake +++ b/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake @@ -5,7 +5,7 @@ set(X86 i386) set(X86_64 x86_64) set(MIPS32 mips mipsel) set(MIPS64 mips64 mips64el) -set(PPC32 powerpc) +set(PPC32 powerpc powerpcspe) set(PPC64 powerpc64 powerpc64le) set(RISCV32 riscv32) set(RISCV64 riscv64) diff --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake index 68e963053474..b20730c2f25d 100644 --- a/compiler-rt/cmake/builtin-config-ix.cmake +++ b/compiler-rt/cmake/builtin-config-ix.cmake @@ -43,7 +43,7 @@ set(X86 i386) set(X86_64 x86_64) set(MIPS32 mips mipsel) set(MIPS64 mips64 mips64el) -set(PPC32 powerpc) +set(PPC32 powerpc powerpcspe) set(PPC64 powerpc64 powerpc64le) set(RISCV32 riscv32) set(RISCV64 riscv64) diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index 971e94407a2c..2c0477f89235 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -609,6 +609,8 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES} set(powerpc_SOURCES ${GENERIC_SOURCES}) +set(powerpcspe_SOURCES ${GENERIC_SOURCES}) + set(powerpc64_SOURCES ppc/divtc3.c ppc/fixtfdi.c