SHA256
9
0
forked from pool/gcc11

- Force using llvm11 for amdgcn offloading since llvm12 doesn't

yet work.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc11?expand=0&rev=340
This commit is contained in:
2021-04-22 12:42:04 +00:00
committed by Git OBS Bridge
parent 7e0264975b
commit accc918d92
55 changed files with 216 additions and 130 deletions

View File

@@ -235,12 +235,13 @@ ExclusiveArch: x86_64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
# amdgcn uses the llvm assembler and linker
BuildRequires: lld
BuildRequires: llvm
# amdgcn uses the llvm assembler and linker, llvm12 doesn't
# work at the moment
BuildRequires: lld11
BuildRequires: llvm11
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
Requires: lld11
Requires: llvm11
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100