commit:     698e17aad2e95f56c53fc3139f45c03c33126edb
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  9 04:20:48 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Sep 10 01:04:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=698e17aa

dev-lang/mlton: mark as LTO-unsafe

It does something to mess with twelf's codegen. Assume it is too flaky
to handle LTO.

Bug: https://bugs.gentoo.org/863266
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-lang/mlton/mlton-20180207.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-lang/mlton/mlton-20180207.ebuild 
b/dev-lang/mlton/mlton-20180207.ebuild
index 22cd719e8d45..44e66eaa657c 100644
--- a/dev-lang/mlton/mlton-20180207.ebuild
+++ b/dev-lang/mlton/mlton-20180207.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit check-reqs multibuild pax-utils
+inherit check-reqs flag-o-matic multibuild pax-utils
 
 DESCRIPTION="Standard ML optimizing compiler and libraries"
 BASE_URI="https://downloads.sourceforge.net/${PN}";
@@ -172,6 +172,10 @@ src_prepare() {
 }
 
 mlton_src_compile() {
+       # produces invalid codegen for twelf
+       # https://bugs.gentoo.org/863266
+       filter-lto
+
        if [[ ${MULTIBUILD_VARIANT} == $(mlton_bootstrap_variant) ]]; then
                emake -j1 \
                        "bootstrap-smlnj" \

Reply via email to