app-i18n/librime-lua: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/940793
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2025-07-03 03:55:44 -04:00
parent 011916bfcc
commit 5b99ec7dcf
2 changed files with 22 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
EAPI="8"
LUA_COMPAT=( lua5-{1..4} luajit )
inherit cmake lua-single
inherit cmake flag-o-matic lua-single
if [[ "${PV}" == "99999999999999" ]]; then
inherit git-r3
@@ -47,3 +47,13 @@ src_prepare() {
cmake_src_prepare
}
src_configure() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/940793
# https://github.com/hchunhui/librime-lua/issues/412
append-flags -fno-strict-aliasing
filter-lto
cmake_src_configure
}

View File

@@ -4,7 +4,7 @@
EAPI="8"
LUA_COMPAT=( lua5-{1..4} luajit )
inherit cmake lua-single
inherit cmake flag-o-matic lua-single
if [[ "${PV}" == "99999999999999" ]]; then
inherit git-r3
@@ -46,3 +46,13 @@ src_prepare() {
cmake_src_prepare
}
src_configure() {
# -Werror=strict-aliasing
# https://bugs.gentoo.org/940793
# https://github.com/hchunhui/librime-lua/issues/412
append-flags -fno-strict-aliasing
filter-lto
cmake_src_configure
}