From f6e4f4f3f19ed4c0d964ef6e22cd79e4ba11415f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 4 Mar 2025 09:17:31 -0800 Subject: [PATCH] Temporarily skip PGO on s390x Resolves: RHEL-81601 Resolves: RHEL-81613 --- rust.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust.spec b/rust.spec index 84a1a6e..673ecdd 100644 --- a/rust.spec +++ b/rust.spec @@ -852,6 +852,9 @@ test -r "%{profiler}" %global __x %{__python3} ./x.py +# Skipping PGO on s390x until we get LLVM 20, due to +# https://github.com/llvm/llvm-project/issues/124001 +%ifnarch s390x %if %with rustc_pgo # Build the compiler with profile instrumentation %define profraw $PWD/build/profiles @@ -867,6 +870,7 @@ rm -r "%{profraw}" build/%{rust_triple}/stage2*/ # Redefine the macro to use that profile data from now on %global __x %{__x} --rust-profile-use="%{profdata}" %endif +%endif # Build the compiler normally (with or without PGO) %{__x} build sysroot