mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user