From 4cca689cfca71c9ac55a07a07fc009b12af6166bc6b627714bec71b0dc39f448 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Mon, 4 Mar 2024 21:57:00 +0000 Subject: [PATCH] - Fix PowerPC triples: use powerpc[64[le]] instead of ppc[64[le]]. - Require 8 GB memory for 64-bit architectures to prevent OOM. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm15?expand=0&rev=34 --- _constraints | 2 +- llvm15.changes | 4 +++- llvm15.spec | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/_constraints b/_constraints index eb02688..323953f 100644 --- a/_constraints +++ b/_constraints @@ -5,7 +5,7 @@ 35 - 4096 + 8192 SLOW_CPU diff --git a/llvm15.changes b/llvm15.changes index cbec1ac..fa9d5cf 100644 --- a/llvm15.changes +++ b/llvm15.changes @@ -1,6 +1,8 @@ ------------------------------------------------------------------- -Sun Mar 3 20:30:50 UTC 2024 - Aaron Puchert +Mon Mar 4 21:29:51 UTC 2024 - Aaron Puchert +- Fix PowerPC triples: use powerpc[64[le]] instead of ppc[64[le]]. +- Require 8 GB memory for 64-bit architectures to prevent OOM. - Disable test that fails on ppc64le. ------------------------------------------------------------------- diff --git a/llvm15.spec b/llvm15.spec index 7b9d305..8841c5e 100644 --- a/llvm15.spec +++ b/llvm15.spec @@ -71,7 +71,8 @@ # See https://build.opensuse.org/request/show/968066. %define target_cpu armv6kz %else -%define target_cpu %{_target_cpu} +# What RPM spells ppc, GCC spells powerpc. +%define target_cpu %{lua:print((string.gsub(rpm.expand("%{_target_cpu}"), "ppc", "powerpc")))} %endif %ifarch %{arm}