Accepting request 886343 from home:aaronpuchert:llvm-next

- Update to version 0.2.0+llvm12.0.0.

OBS-URL: https://build.opensuse.org/request/show/886343
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=36
This commit is contained in:
Stefan Dirsch 2021-04-17 18:06:30 +00:00 committed by Git OBS Bridge
parent 3ec6854b91
commit 5585632462
4 changed files with 13 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2362fa479e6e9052b8ee46b991cca43888215095ef2aac1361b204d9870bf684
size 123076

3
libclc-12.0.0.src.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b777ee2cd57da1b122f76c208463f620eef508f4128210c6b1a96bfb75c74dc
size 124192

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 14 23:57:28 UTC 2021 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Update to version 0.2.0+llvm12.0.0.
-------------------------------------------------------------------
Sat Jan 9 16:37:14 UTC 2021 - Aaron Puchert <aaronpuchert@alice-dsl.net>

View File

@ -16,13 +16,13 @@
#
%define _libclc_llvm_ver 11.0.1
%define _libclc_llvm_ver 12.0.0
Name: libclc
Version: 0.2.0+llvm%{_libclc_llvm_ver}
Release: 0
Summary: OpenCL C programming language library
License: (BSD-3-Clause OR MIT) AND Apache-2.0 WITH LLVM-exception
License: Apache-2.0 WITH LLVM-exception AND (BSD-3-Clause OR MIT)
Group: Development/Libraries/C and C++
URL: https://libclc.llvm.org/
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_libclc_llvm_ver}/%{name}-%{_libclc_llvm_ver}.src.tar.xz
@ -44,11 +44,12 @@ Library requirements of the OpenCL C programming language.
# The libraries are bitcode files, so LTO is neither supported nor does it help.
%define _lto_cflags %{nil}
sed -i "s|python|python3|g" CMakeLists.txt
# TODO: For building all targets, we need llvm-spirv.
%cmake \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DENABLE_RUNTIME_SUBNORMAL:BOOL=ON
-DENABLE_RUNTIME_SUBNORMAL:BOOL=ON \
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
%cmake_build
%install