1
0
forked from pool/spirv-tools
Jan Engelhardt 2021-05-05 09:59:34 +00:00 committed by Git OBS Bridge
parent 31d3c23a26
commit b7a31cceab

View File

@ -35,7 +35,7 @@ BuildRequires: bison
BuildRequires: cmake >= 2.8.12
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: python3-base
BuildRequires: python3
BuildRequires: python3-xml
BuildRequires: spirv-headers >= 1.5.4.g48
@ -68,7 +68,9 @@ integration into other code bases directly.
%autosetup -p1 -n SPIRV-Tools-%version
%build
%if 0%{?suse_version} >= 1550
export CXXFLAGS="%optflags -Wno-error=stringop-truncation"
%endif
%cmake -DSPIRV-Headers_SOURCE_DIR="%_prefix" \
-DSPIRV_TOOLS_BUILD_STATIC:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON
%cmake_build