dev-lang/ruby: only pass -fno-ipa-modref for GCC

Only GCC has the flag (Clang doesn't) but we only want to apply it
for GCC to begin with, even if for some reason Clang did have it.

Bug: https://bugs.gentoo.org/965095
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-11-09 05:45:42 +00:00
parent 9a7a3a2544
commit 3e439610e8
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ EAPI=8
RUST_OPTIONAL="yes"
inherit autotools flag-o-matic multiprocessing rust
inherit autotools flag-o-matic multiprocessing toolchain-funcs rust
MY_P="${PN}-$(ver_cut 1-3)"
@ -166,7 +166,7 @@ src_configure() {
# as it's risky with newer compilers to leave it as it is.
append-flags -fno-strict-aliasing
# Workaround for bug #965095 (gcc PR122610)
append-flags -fno-ipa-modref
tc-is-gcc && append-flags -fno-ipa-modref
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then

View File

@ -5,7 +5,7 @@ EAPI=8
RUST_OPTIONAL="yes"
inherit autotools flag-o-matic multiprocessing rust
inherit autotools flag-o-matic multiprocessing toolchain-funcs rust
MY_P="${PN}-$(ver_cut 1-3)"
@ -162,7 +162,7 @@ src_configure() {
# as it's risky with newer compilers to leave it as it is.
append-flags -fno-strict-aliasing
# Workaround for bug #965095 (gcc PR122610)
append-flags -fno-ipa-modref
tc-is-gcc && append-flags -fno-ipa-modref
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then

View File

@ -5,7 +5,7 @@ EAPI=8
RUST_OPTIONAL="yes"
inherit autotools flag-o-matic multiprocessing rust
inherit autotools flag-o-matic multiprocessing toolchain-funcs rust
MY_P="${PN}-$(ver_cut 1-3)"
@ -176,7 +176,7 @@ src_configure() {
# as it's risky with newer compilers to leave it as it is.
append-flags -fno-strict-aliasing
# Workaround for bug #965095 (gcc PR122610)
append-flags -fno-ipa-modref
tc-is-gcc && append-flags -fno-ipa-modref
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then