Filter out -mbranch-protection= on aarch64.

This option is only available since GCC 9.

Resolves: #1916228
This commit is contained in:
Marek Polacek 2021-01-21 12:51:49 -05:00
parent bae06e86ab
commit 1a190dbfa4
1 changed files with 3 additions and 0 deletions

View File

@ -364,6 +364,9 @@ OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=x86-64-v2/-march=x86-64/g'`
%ifarch %{ix86}
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=i.86//g'`
%endif
%ifarch aarch64
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mbranch-protection=standard//g'`
%endif
%ifarch s390x
# Same here.
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=z13 -mtune=z14//g'`