forked from pool/spirv-tools
This commit is contained in:
parent
31d3c23a26
commit
b7a31cceab
@ -35,7 +35,7 @@ BuildRequires: bison
|
|||||||
BuildRequires: cmake >= 2.8.12
|
BuildRequires: cmake >= 2.8.12
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3
|
||||||
BuildRequires: python3-xml
|
BuildRequires: python3-xml
|
||||||
BuildRequires: spirv-headers >= 1.5.4.g48
|
BuildRequires: spirv-headers >= 1.5.4.g48
|
||||||
|
|
||||||
@ -68,7 +68,9 @@ integration into other code bases directly.
|
|||||||
%autosetup -p1 -n SPIRV-Tools-%version
|
%autosetup -p1 -n SPIRV-Tools-%version
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?suse_version} >= 1550
|
||||||
export CXXFLAGS="%optflags -Wno-error=stringop-truncation"
|
export CXXFLAGS="%optflags -Wno-error=stringop-truncation"
|
||||||
|
%endif
|
||||||
%cmake -DSPIRV-Headers_SOURCE_DIR="%_prefix" \
|
%cmake -DSPIRV-Headers_SOURCE_DIR="%_prefix" \
|
||||||
-DSPIRV_TOOLS_BUILD_STATIC:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON
|
-DSPIRV_TOOLS_BUILD_STATIC:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
Loading…
Reference in New Issue
Block a user