commit:     015591c4c4c085390dc4cf1344a6efa26fb55bd3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  7 17:59:44 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar  7 17:59:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=015591c4

toolchain.eclass: enable LTO for libgccjit build

Note that this is just about LTO support, not building it with LTO.

See https://inbox.sourceware.org/jit/dd6f69da-757b-49ba-864a-377a8dc393cf <AT> 
zoho.com/T/#t.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index fef38790922c..05409f0fc3fa 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1383,6 +1383,7 @@ toolchain_src_configure() {
                local confgcc_jit=(
                        "${confgcc[@]}"
 
+                       --enable-lto
                        --disable-analyzer
                        --disable-bootstrap
                        --disable-cet
@@ -1398,7 +1399,6 @@ toolchain_src_configure() {
                        --disable-libssp
                        --disable-libstdcxx-pch
                        --disable-libvtv
-                       --disable-lto
                        --disable-nls
                        --disable-objc-gc
                        --disable-systemtap

Reply via email to