build the spirv

This commit is contained in:
Dave Airlie 2021-05-17 05:41:13 +10:00
parent 4e55bbe7b2
commit cde5395433

View File

@ -5,7 +5,7 @@
Name: libclc Name: libclc
Version: 12.0.0 Version: 12.0.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: An open source implementation of the OpenCL 1.1 library requirements Summary: An open source implementation of the OpenCL 1.1 library requirements
License: BSD License: BSD
@ -19,6 +19,7 @@ BuildRequires: llvm-devel >= %{version}
BuildRequires: python-unversioned-command BuildRequires: python-unversioned-command
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: cmake BuildRequires: cmake
BuildRequires: spirv-llvm-translator-tools
%description %description
libclc is an open source, BSD licensed implementation of the library libclc is an open source, BSD licensed implementation of the library
@ -61,8 +62,7 @@ developing applications that use %{name}.
%build %build
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline" export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%set_build_flags %set_build_flags
%cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_libdir} \ %cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_libdir}
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
%cmake_build %cmake_build
@ -77,12 +77,17 @@ export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%doc README.TXT CREDITS.TXT %doc README.TXT CREDITS.TXT
%dir %{_libdir}/%{shortname} %dir %{_libdir}/%{shortname}
%{_libdir}/%{shortname}/*.bc %{_libdir}/%{shortname}/*.bc
%{_libdir}/%{shortname}/spirv-mesa3d-.spv
%{_libdir}/%{shortname}/spirv64-mesa3d-.spv
%{_includedir}/%{shortname} %{_includedir}/%{shortname}
%files devel %files devel
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%changelog %changelog
* Mon May 17 2021 Dave Airlie <airlied@redhat.com> - 12.0.0-2
- build the spirv
* Fri Apr 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-1 * Fri Apr 16 2021 Tom Stellard <tstellar@redhat.com> - 12.0.0-1
- 12.0.0 Release - 12.0.0 Release