sys-devel/llvm: Apply -fno-bmi only on x86 arches

Closes: https://bugs.gentoo.org/650506
This commit is contained in:
Michał Górny
2018-03-23 10:20:54 +01:00
parent 37c21706fc
commit ea7b6929b5
3 changed files with 12 additions and 3 deletions

View File

@@ -172,7 +172,10 @@ multilib_src_configure() {
# workaround BMI bug in gcc-7 (fixed in 7.4)
# https://bugs.gentoo.org/649880
if tc-is-gcc && [[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]]; then
# apply only to x86, https://bugs.gentoo.org/650506
if tc-is-gcc && [[ ${MULTILIB_ABI_FLAG} == abi_x86* ]] &&
[[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]]
then
local CFLAGS="${CFLAGS} -mno-bmi"
local CXXFLAGS="${CXXFLAGS} -mno-bmi"
fi

View File

@@ -172,7 +172,10 @@ multilib_src_configure() {
# workaround BMI bug in gcc-7 (fixed in 7.4)
# https://bugs.gentoo.org/649880
if tc-is-gcc && [[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]]; then
# apply only to x86, https://bugs.gentoo.org/650506
if tc-is-gcc && [[ ${MULTILIB_ABI_FLAG} == abi_x86* ]] &&
[[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]]
then
local CFLAGS="${CFLAGS} -mno-bmi"
local CXXFLAGS="${CXXFLAGS} -mno-bmi"
fi

View File

@@ -174,7 +174,10 @@ multilib_src_configure() {
# workaround BMI bug in gcc-7 (fixed in 7.4)
# https://bugs.gentoo.org/649880
if tc-is-gcc && [[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]]; then
# apply only to x86, https://bugs.gentoo.org/650506
if tc-is-gcc && [[ ${MULTILIB_ABI_FLAG} == abi_x86* ]] &&
[[ $(gcc-major-version) -eq 7 && $(gcc-minor-version) -lt 4 ]]
then
local CFLAGS="${CFLAGS} -mno-bmi"
local CXXFLAGS="${CXXFLAGS} -mno-bmi"
fi