summaryrefslogtreecommitdiff
path: root/main/compiler-rt
diff options
context:
space:
mode:
Diffstat (limited to 'main/compiler-rt')
-rw-r--r--main/compiler-rt/APKBUILD2
-rw-r--r--main/compiler-rt/fix-arch-detection-for-ppc64le.patch26
2 files changed, 28 insertions, 0 deletions
diff --git a/main/compiler-rt/APKBUILD b/main/compiler-rt/APKBUILD
index ba7e5996d99..9b1bcf2bdc3 100644
--- a/main/compiler-rt/APKBUILD
+++ b/main/compiler-rt/APKBUILD
@@ -26,6 +26,7 @@ source="https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/c
https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-$pkgver.src.tar.xz
disable-sanitizer-common.patch
fuzzer-size_t-musl.patch
+ fix-arch-detection-for-ppc64le.patch
"
builddir="$srcdir/$pkgname-$pkgver.src"
@@ -81,4 +82,5 @@ sha512sums="
ff674afb4c8eea699a4756f1bb463f15098a7fa354c733de83c024f8f0cf238cd5f19ae3ec446831c7109235e293e2bf31d8562567ede163c8ec53af7306ba0f llvm-12.0.1.src.tar.xz
b099dac8ab1da41a3bd12df1ceb2ff6a46e41a82db31f3444fdca1de1e0565131a612cd375e721f894a7da2df1a90a99b53c983b45914d18a8ee6f99a3ec563f disable-sanitizer-common.patch
1770e3c641dd7e6787471183ea2ace4543e2d4cf51df9612a28966d7414ef7f73b16fd46cec07a347c56a0c68c715659e554841aedf003b53c0997b2b6872936 fuzzer-size_t-musl.patch
+6b1b9b3f7bc2dc70f64f7e096b4b7b657f788271161721c4a49a7a7a86aeff5787b8bd3239666d7d1efa686429e1246588e6d4bac1c765f305d38349965c169a fix-arch-detection-for-ppc64le.patch
"
diff --git a/main/compiler-rt/fix-arch-detection-for-ppc64le.patch b/main/compiler-rt/fix-arch-detection-for-ppc64le.patch
new file mode 100644
index 00000000000..c0bf709d446
--- /dev/null
+++ b/main/compiler-rt/fix-arch-detection-for-ppc64le.patch
@@ -0,0 +1,26 @@
+Patch-Source: https://src.fedoraproject.org/rpms/compiler-rt/blob/f35/f/0001-Fix-compiler-rt-arch-detection-for-ppc64le.patch
+From 72191190adea8e861e9a383b83799e7472b80e30 Mon Sep 17 00:00:00 2001
+From: Tom Stellard <tstellar@redhat.com>
+Date: Thu, 23 Sep 2021 18:06:41 -0700
+Subject: [PATCH] Fix compiler-rt arch detection for ppc64le
+
+---
+ compiler-rt/cmake/base-config-ix.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake
+index c11342e68813..3ca9dc0f5515 100644
+--- a/cmake/base-config-ix.cmake
++++ b/cmake/base-config-ix.cmake
+@@ -204,7 +204,7 @@ macro(test_targets)
+ test_target_arch(x86_64 "" "")
+ endif()
+ endif()
+- elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "powerpc64le")
++ elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "powerpc64le|ppc64le")
+ test_target_arch(powerpc64le "" "-m64")
+ elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "powerpc")
+ if(CMAKE_SYSTEM_NAME MATCHES "AIX")
+--
+2.27.0
+