forked from pool/vulkan-validationlayers
15.4 compiler
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=123
This commit is contained in:
parent
2fd9fb0689
commit
acc10d8198
@ -28,7 +28,11 @@ Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/
|
|||||||
Patch2: xxhash.diff
|
Patch2: xxhash.diff
|
||||||
Patch3: gcc13.diff
|
Patch3: gcc13.diff
|
||||||
BuildRequires: cmake >= 3.7.12
|
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: glslang-devel >= 12.2
|
||||||
BuildRequires: memory-constraints
|
BuildRequires: memory-constraints
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
@ -60,6 +64,12 @@ cat >gxx <<-EOF
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec g++ "\$@" -lpthread
|
exec g++ "\$@" -lpthread
|
||||||
EOF
|
EOF
|
||||||
|
%if 0%{?suse_version} < 1599
|
||||||
|
cat >gxx <<-EOF
|
||||||
|
#!/bin/sh
|
||||||
|
exec g++-11 "\$@" -lpthread
|
||||||
|
EOF
|
||||||
|
%endif
|
||||||
chmod a+x gxx
|
chmod a+x gxx
|
||||||
export CXX="$PWD/gxx"
|
export CXX="$PWD/gxx"
|
||||||
%cmake -DGLSLANG_INSTALL_DIR="%_bindir" \
|
%cmake -DGLSLANG_INSTALL_DIR="%_bindir" \
|
||||||
|
Loading…
Reference in New Issue
Block a user