From 7ab9a69f6ac99a9fad198117cf146e0e856da728 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 19 May 2021 07:50:52 +1000 Subject: [PATCH] avoid parallel make on i686 in the hope of getting a build without OOM --- vulkan-validation-layers.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vulkan-validation-layers.spec b/vulkan-validation-layers.spec index a7128bb..9ed92af 100644 --- a/vulkan-validation-layers.spec +++ b/vulkan-validation-layers.spec @@ -45,6 +45,9 @@ developing applications that use %{name}. # Decrease debuginfo verbosity to reduce memory consumption even more %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') +%ifarch %{ix86} +%global parallel -j1 +%endif %cmake3 -DCMAKE_BUILD_TYPE=Release \ -DGLSLANG_INSTALL_DIR=%{_prefix} \ @@ -52,7 +55,7 @@ developing applications that use %{name}. -DUSE_ROBIN_HOOD_HASHING:BOOL=OFF \ -DSPIRV_HEADERS_INSTALL_DIR=%{_includedir}/spirv \ -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/vulkan/ -%cmake_build +%cmake_build %{?parallel} %install