1
0
Jan Engelhardt 2023-05-31 00:30:34 +00:00 committed by Git OBS Bridge
parent 2fd9fb0689
commit acc10d8198

View File

@ -28,7 +28,11 @@ Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/
Patch2: xxhash.diff
Patch3: gcc13.diff
BuildRequires: cmake >= 3.7.12
BuildRequires: gcc-c++ >= 4.8
%if 0%{?suse_version} >= 1599
BuildRequires: gcc-c++
%else
BuildRequires: gcc11-c++
%endif
BuildRequires: glslang-devel >= 12.2
BuildRequires: memory-constraints
BuildRequires: pkg-config
@ -60,6 +64,12 @@ cat >gxx <<-EOF
#!/bin/sh
exec g++ "\$@" -lpthread
EOF
%if 0%{?suse_version} < 1599
cat >gxx <<-EOF
#!/bin/sh
exec g++-11 "\$@" -lpthread
EOF
%endif
chmod a+x gxx
export CXX="$PWD/gxx"
%cmake -DGLSLANG_INSTALL_DIR="%_bindir" \