From fb0c4ada85ba0356645a67f54bdf7b49423813bc Mon Sep 17 00:00:00 2001 From: Anusha Srivatsa Date: Mon, 11 May 2026 19:20:57 -0500 Subject: [PATCH] Apply optimization workaround to ix86 only These workarounds where introduced for ix86 in the first place. In newer versions, they are causing build issues: https://bugzilla.redhat.com/show_bug.cgi?id=2440395 Enable them conditionally. Backported from Fedora rawhide commit 5beacdd82355. --- vulkan-validation-layers.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vulkan-validation-layers.spec b/vulkan-validation-layers.spec index c97ddd3..0b3ae50 100644 --- a/vulkan-validation-layers.spec +++ b/vulkan-validation-layers.spec @@ -35,8 +35,10 @@ Vulkan validation layers %build # Decrease debuginfo verbosity to reduce memory consumption even more +%ifarch %{ix86} %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %global optflags %(echo %{optflags} | sed 's/-O2 /-O1 /') +%endif %cmake -DCMAKE_BUILD_TYPE=Release \ -DBUILD_WERROR=OFF \