llvm-core/llvm: workaround strict alisaing bug

Bug: https://github.com/llvm/llvm-project/issues/219693
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-08-29 17:46:10 +01:00
parent 92b701e25e
commit 92e98d5471
3 changed files with 9 additions and 0 deletions

View File

@@ -388,6 +388,9 @@ multilib_src_configure() {
# LLVM with LTO anyway (which is not necessarily its fault).
tc-is-gcc && filter-lto
# https://github.com/llvm/llvm-project/issues/219693
append-flags -fno-strict-aliasing
local ffi_cflags ffi_ldflags
if use libffi; then
ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi)

View File

@@ -387,6 +387,9 @@ multilib_src_configure() {
# LLVM with LTO anyway (which is not necessarily its fault).
tc-is-gcc && filter-lto
# https://github.com/llvm/llvm-project/issues/219693
append-flags -fno-strict-aliasing
local ffi_cflags ffi_ldflags
if use libffi; then
ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi)

View File

@@ -387,6 +387,9 @@ multilib_src_configure() {
# LLVM with LTO anyway (which is not necessarily its fault).
tc-is-gcc && filter-lto
# https://github.com/llvm/llvm-project/issues/219693
append-flags -fno-strict-aliasing
local ffi_cflags ffi_ldflags
if use libffi; then
ffi_cflags=$($(tc-getPKG_CONFIG) --cflags-only-I libffi)