From 92e98d5471a1d3155de6ba6ddf0e69283f36426b Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 29 Aug 2026 17:46:10 +0100 Subject: [PATCH] llvm-core/llvm: workaround strict alisaing bug Bug: https://github.com/llvm/llvm-project/issues/219693 Signed-off-by: Sam James --- llvm-core/llvm/llvm-23.1.0.ebuild | 3 +++ llvm-core/llvm/llvm-24.0.0.9999.ebuild | 3 +++ llvm-core/llvm/llvm-24.0.0_pre20260725.ebuild | 3 +++ 3 files changed, 9 insertions(+) diff --git a/llvm-core/llvm/llvm-23.1.0.ebuild b/llvm-core/llvm/llvm-23.1.0.ebuild index 4612c8b5fb3eb..6a4092ea6e45b 100644 --- a/llvm-core/llvm/llvm-23.1.0.ebuild +++ b/llvm-core/llvm/llvm-23.1.0.ebuild @@ -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) diff --git a/llvm-core/llvm/llvm-24.0.0.9999.ebuild b/llvm-core/llvm/llvm-24.0.0.9999.ebuild index adc67333c68b0..f53515fafd1d5 100644 --- a/llvm-core/llvm/llvm-24.0.0.9999.ebuild +++ b/llvm-core/llvm/llvm-24.0.0.9999.ebuild @@ -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) diff --git a/llvm-core/llvm/llvm-24.0.0_pre20260725.ebuild b/llvm-core/llvm/llvm-24.0.0_pre20260725.ebuild index ab1a35bdebcea..c6831039007b6 100644 --- a/llvm-core/llvm/llvm-24.0.0_pre20260725.ebuild +++ b/llvm-core/llvm/llvm-24.0.0_pre20260725.ebuild @@ -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)