forked from pool/gcc11
This commit is contained in:
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
||||
%define build_objc 0
|
||||
%define build_objcp 0
|
||||
%define build_go 0
|
||||
%define build_hsa 0
|
||||
%define build_nvptx 0
|
||||
%define build_gcn 0
|
||||
%define build_d 0
|
||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
||||
BuildRequires: nvptx-tools
|
||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||
Requires: nvptx-tools
|
||||
ExclusiveArch: x86_64
|
||||
ExclusiveArch: x86_64 aarch64
|
||||
%define nvptx_newlib 1
|
||||
%endif
|
||||
%if "%{cross_arch}" == "amdgcn"
|
||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||
Requires: lld
|
||||
Requires: llvm
|
||||
# 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
|
||||
ExclusiveArch: x86_64
|
||||
%else
|
||||
ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%define amdgcn_newlib 1
|
||||
%endif
|
||||
%endif
|
||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
||||
--libdir=%{_libdir} \
|
||||
--libexecdir=%{_libdir} \
|
||||
--enable-languages=$languages \
|
||||
%if %{build_nvptx}
|
||||
%if %{build_nvptx} || %{build_gcn}
|
||||
--enable-offload-targets=\
|
||||
%if %{build_nvptx}
|
||||
nvptx-none=%{_prefix}/nvptx-none,\
|
||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
||||
%if 0%{!?build_libvtv:1}
|
||||
--disable-libvtv \
|
||||
%endif
|
||||
%if 0%{suse_version} >= 1500
|
||||
--enable-cet=auto \
|
||||
%else
|
||||
--disable-cet \
|
||||
%endif
|
||||
--disable-libcc1 \
|
||||
%if %{enable_plugins}
|
||||
--enable-plugin \
|
||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if "%{TARGET_ARCH}" == "avr"
|
||||
--enable-lto \
|
||||
--without-gxx-include-dir \
|
||||
--with-native-system-header-dir=/include \
|
||||
--with-newlib \
|
||||
--disable-__cxa_atexit \
|
||||
--enable-libstdcxx \
|
||||
--disable-hosted-libstdcxx \
|
||||
%endif
|
||||
%endif
|
||||
%if "%{TARGET_ARCH}" == "arm"
|
||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
||||
--with-fpu=vfp \
|
||||
--disable-sjlj-exceptions \
|
||||
%endif
|
||||
%if "%{TARGET_ARCH}" == "arm-none"
|
||||
--enable-multilib \
|
||||
--with-multilib-list=aprofile,rmprofile \
|
||||
--disable-decimal-float \
|
||||
--disable-libffi \
|
||||
--disable-libgomp \
|
||||
--disable-libmudflap \
|
||||
--disable-libquadmath \
|
||||
--disable-shared \
|
||||
--disable-threads \
|
||||
--disable-tls \
|
||||
%endif
|
||||
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||
--with-arch=armv5te \
|
||||
--with-float=soft \
|
||||
|
||||
Reference in New Issue
Block a user