SHA256
1
0
forked from pool/ldc

Accepting request 850764 from devel:languages:D

OBS-URL: https://build.opensuse.org/request/show/850764
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ldc?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2020-11-25 18:31:00 +00:00 committed by Git OBS Bridge
commit 99953f731b
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 25 15:09:09 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix aarch64 build: Drop '-mbranch-protection=standard' option
as llvm7 does not support it
-------------------------------------------------------------------
Thu Oct 1 09:04:59 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -172,6 +172,13 @@ popd
%endif
%build
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
%ifarch aarch64
# llvm7 does not support '-mbranch-protection=standard' option
export CFLAGS=`echo "%{optflags}" |sed 's/-mbranch-protection=standard//'`
export CXXFLAGS=`echo "%{optflags}" |sed 's/-mbranch-protection=standard//'`
%endif
%endif
%if %{with ldc_bootstrap}
pushd ldc-0.17.6-src
#Needs to be compiled with clang, but opensuse_rules.cmake forces gcc so disable rule