From 56edec4464286d054b3cccb1bb586afb488c8731 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Wed, 19 Oct 2022 18:59:02 +0200 Subject: [PATCH] [Android] Enable LTO At least on arm64 it appears to work just fine, but other archs need testing as well. --- firebird.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firebird.pro b/firebird.pro index 88cc70a9..d3cd1e3a 100644 --- a/firebird.pro +++ b/firebird.pro @@ -51,7 +51,7 @@ QMAKE_CXXFLAGS_RELEASE = -O3 -DNDEBUG # Don't enable LTO with clang on Linux, incompatible with Qt (QTBUG-43556). # On FreeBSD, clang with LTO produces copy relocs, which are incompatible # with Qt's -reduce-relocations option (QTBUG-86173). -!clang | !if(linux|freebsd): CONFIG += ltcg +!clang | !if(if(linux:!android)|freebsd): CONFIG += ltcg # noexecstack is not supported by MinGW's as !win32 {