Workaround i686 build issue
This commit is contained in:
parent
bb4db1dcc4
commit
7d9c82e465
@ -1,18 +1,12 @@
|
||||
Name: vulkan-validation-layers
|
||||
Version: 1.1.77.0
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Vulkan validation layers
|
||||
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers
|
||||
Source0: %url/archive/sdk-%{version}.tar.gz#/Vulkan-ValidationLayers-sdk-%{version}.tar.gz
|
||||
|
||||
%if 0%{?fedora} >= 29
|
||||
# Exclude i686 due to 'virtual memory exhausted' FTBFS
|
||||
# Someone who cares about 32bit can fix it or submit a patch
|
||||
ExcludeArch: i686
|
||||
%endif
|
||||
|
||||
BuildRequires: cmake3
|
||||
BuildRequires: glslang-devel
|
||||
BuildRequires: ninja-build
|
||||
@ -35,6 +29,12 @@ Vulkan validation layers
|
||||
|
||||
|
||||
%build
|
||||
# Decrease debuginfo even on ix86 because of:
|
||||
%ifarch %{ix86}
|
||||
# Decrease debuginfo verbosity to reduce memory consumption even more
|
||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||
%endif
|
||||
|
||||
%cmake3 -GNinja -DCMAKE_BUILD_TYPE=Release -DGLSLANG_INSTALL_DIR=%{_bindir} .
|
||||
# Use two threads as build uses mega amounts of RAM
|
||||
# It still requires at least 16Gb to compile with 2 threads
|
||||
@ -56,6 +56,9 @@ ninja -v -j2
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 26 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.1.77.0-3
|
||||
- Workaround i686 build issue
|
||||
|
||||
* Tue Jun 26 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.1.77.0-2
|
||||
- Exclude i686 due to 'virtual memory exhausted' FTBFS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user