On Thu, May 20, 2021 at 6:45 PM Leigh Scott <leigh123linux(a)gmail.com> wrote:
Is disabling debug on i686 an option?
--- a/vulkan-validation-layers.spec
+++ b/vulkan-validation-layers.spec
@@ -43,7 +43,12 @@ developing applications that use %{name}.
%build
# Decrease debuginfo verbosity to reduce memory consumption even more
+%ifarch %{ix86}
+%global debug_package %{nil}
+%global optflags %(echo %{optflags} | sed 's/-g /-g0 /')
+%else
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
+%endif
%global optflags %(echo %{optflags} | sed 's/-O2 /-O1 /')
I ended up dropping to O1 as sufficient, I don't think it'll really
matter for this package to not be optimised.
But I could consider dropping to g0 on ix86 I suppose.
But it's mostly a debugging package so I think it might not be optimal
to have no symbols for it at all.
Dave.