From 1543b408e069ca86b865f9897dc67dd950994b2d Mon Sep 17 00:00:00 2001 From: psykose <alice@ayaya.dev> Date: Wed, 17 May 2023 07:02:02 +0000 Subject: [PATCH] main/llvm-runtimes: fix ppc64le patch for gcc13 --- main/llvm-runtimes/APKBUILD | 2 +- main/llvm-runtimes/compiler-rt-ppc-fixes.patch | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main/llvm-runtimes/APKBUILD b/main/llvm-runtimes/APKBUILD index 7f0d1e03d507..0e5eec7336eb 100644 --- a/main/llvm-runtimes/APKBUILD +++ b/main/llvm-runtimes/APKBUILD @@ -202,7 +202,7 @@ sha512sums=" 860bcb999005f55bed25691304983d7bf707f8e3246000595b412b9e88f4a1614be0adb43bbff9c30f49b969373fa0becab02a56ac37915a5f83c52ca8ea3f95 llvm-project-16.0.4.src.tar.xz 5e7bbddbaea902e5ba5cd4db78bedbeef216f44fdd9b8f73efde6c09f40115c078649a109ffa61fefa0ee2f26655c038a48589ecac83068a47d60e9248c5dff1 armv6-arch.patch.noauto 7c2cbd095b863f735842aaa8f0daecbf0282200fc58f1394139cee30d53c4a738757e38cbf0ec734398ee827e8a47314592bd7dc9768ef5c3664db682680e5a1 compiler-rt-lsan-dtp-offset.patch -c7b7deaedddc4b980b349c26751bdca102e19b3d2fb61fc47ede849d3994fd9b6bbcd631bc129f129f5b0a048e12ae04cce3a2d91bc5678aa9f782c37d170c93 compiler-rt-ppc-fixes.patch +aaef886f71c5499da18ff18937404ab641cbc3a540ee9e4eed7ae6895970863e6d01ed598f8b2f1512936f33d6dd122cd7a00545afaf710a8026c729a3af720c compiler-rt-ppc-fixes.patch 448ad39865b1a86d69c80b6626500e16509834787944f0b402b3eb3b2d6d1c034073b4004b7e1eee6afdc21b553945e65943b79426105503012c4dfac1ee2e7b compiler-rt-sanitizer-supported-arch.patch b777d84f3dd397719805e3be656bd159b479ae8d7c0490c842eb7402b9badfcdf40c7fe80271117b0627866c4e56e9dc6818da8b29de112fa3aca694d484b94c compiler-rt-scudo-standalone.patch e601d0657d61cf080c9a03fd0139f9cae85339ba7f997f61283c1ba3b9fb48479cca875db44b64ee8b48a7d61a18a70d7cd123500f72966770cf5312b1aca034 libunwind-link-libssp.patch diff --git a/main/llvm-runtimes/compiler-rt-ppc-fixes.patch b/main/llvm-runtimes/compiler-rt-ppc-fixes.patch index 249ce05acb85..6738ebc55c96 100644 --- a/main/llvm-runtimes/compiler-rt-ppc-fixes.patch +++ b/main/llvm-runtimes/compiler-rt-ppc-fixes.patch @@ -65,12 +65,13 @@ index 7e872b5b4..9616a09d8 100644 #include <sys/platform/ppc.h> #elif defined(__FreeBSD__) #include <sys/types.h> -@@ -27,6 +27,13 @@ uint64_t __ppc_get_timebase_freq (void) +@@ -27,6 +27,14 @@ uint64_t __ppc_get_timebase_freq (void) sysctlbyname("kern.timecounter.tc.timebase.frequency", &tb_freq, &length, nullptr, 0); return tb_freq; } +#else +#include <cctype> ++#include <cstdio> +#include <cstring> +#include <cstdlib> + -- GitLab