1
0
forked from pool/spirv-headers

Build with GCC 13 on Leap/SLES 15 (bsc#1238713)

This is in preparation to get Mesa build fixed which broke, after
llvm19 needed to be built now with gcc13.
This commit is contained in:
Stefan Dirsch
2025-03-06 21:30:22 +01:00
parent 6272520b8f
commit 8b79aa8b1d
2 changed files with 18 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 6 14:02:10 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
- Build with GCC 13 on Leap/SLES 15 in the hope to fix Mesa build
(bsc#1238713)
-------------------------------------------------------------------
Sun Dec 15 20:43:19 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package spirv-headers
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,12 @@
# They add "SDK" tags that reflect the Vulkan version (1.3),
# and the independently increasing toolchain release number (296).
# Leap 15 and SLES 15 defaults to GCC 7, which does not have stable C++17 ABI.
# See https://bugzilla.suse.com/show_bug.cgi?id=1235697
%if 0%{?suse_version} < 1600
%define gcc_version 13
%endif
Name: spirv-headers
Version: 1.6.4+sdk303
%define innerver 1.3.303
@@ -36,7 +42,8 @@ Source: https://github.com/KhronosGroup/SPIRV-Headers/archive/cb6b2c32db
BuildArch: noarch
BuildRequires: cmake >= 2.8
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gcc%{?gcc_version} >= 9
BuildRequires: gcc%{?gcc_version}-c++ >= 9
BuildRequires: pkg-config
%description
@@ -52,7 +59,9 @@ registry. This includes:
%autosetup -n SPIRV-Headers-%rev -p1
%build
%cmake
%cmake \
-DCMAKE_C_COMPILER=gcc%{?gcc_version:-%{gcc_version}} \
-DCMAKE_CXX_COMPILER=g++%{?gcc_version:-%{gcc_version}}
%cmake_build
%install