forked from pool/libclc
Accepting request 1061754 from home:aaronpuchert:branches:X11:XOrg
- Add support for SPIR-V targets on Tumbleweed. OBS-URL: https://build.opensuse.org/request/show/1061754 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libclc?expand=0&rev=56
This commit is contained in:
parent
9f59fac755
commit
7eac7bb317
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 28 14:28:38 UTC 2023 - Aaron Puchert <aaronpuchert@alice-dsl.net>
|
||||||
|
|
||||||
|
- Add support for SPIR-V targets on Tumbleweed.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Nov 5 11:05:57 UTC 2022 - Stefan Dirsch <sndirsch@suse.com>
|
Sat Nov 5 11:05:57 UTC 2022 - Stefan Dirsch <sndirsch@suse.com>
|
||||||
|
|
||||||
|
10
libclc.spec
10
libclc.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libclc
|
# spec file for package libclc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -35,6 +35,7 @@ BuildRequires: cmake
|
|||||||
%if 0%{?suse_version} >= 1550
|
%if 0%{?suse_version} >= 1550
|
||||||
BuildRequires: clang-devel
|
BuildRequires: clang-devel
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: llvm-devel
|
||||||
|
BuildRequires: pkgconfig(LLVMSPIRVLib)
|
||||||
%else
|
%else
|
||||||
%if 0%{?sle_version} >= 150500
|
%if 0%{?sle_version} >= 150500
|
||||||
BuildRequires: clang15-devel
|
BuildRequires: clang15-devel
|
||||||
@ -70,7 +71,6 @@ Library requirements of the OpenCL C programming language.
|
|||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
# For now we turn off opaque pointers - Clang uses them by default, but Mesa doesn't support them yet.
|
# For now we turn off opaque pointers - Clang uses them by default, but Mesa doesn't support them yet.
|
||||||
# TODO: For building all targets, we need llvm-spirv.
|
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_C_COMPILER=clang \
|
-DCMAKE_C_COMPILER=clang \
|
||||||
-DCMAKE_CXX_COMPILER=clang++ \
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
@ -78,8 +78,10 @@ Library requirements of the OpenCL C programming language.
|
|||||||
-DCMAKE_CLC_FLAGS="-Xclang -no-opaque-pointers" \
|
-DCMAKE_CLC_FLAGS="-Xclang -no-opaque-pointers" \
|
||||||
-DCMAKE_LLAsm_FLAGS="-Xclang -no-opaque-pointers" \
|
-DCMAKE_LLAsm_FLAGS="-Xclang -no-opaque-pointers" \
|
||||||
%endif
|
%endif
|
||||||
-DENABLE_RUNTIME_SUBNORMAL:BOOL=ON \
|
%if 0%{?suse_version} < 1550
|
||||||
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
|
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl" \
|
||||||
|
%endif
|
||||||
|
-DENABLE_RUNTIME_SUBNORMAL:BOOL=ON
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user