diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-08-20 19:43:08 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-09-05 09:01:01 -0400 |
commit | a5ce5928597cb3096554d706c1b567164d5066ef (patch) | |
tree | 35d5edfda592629ec5a399c93fb3478ecdddce64 /eclass | |
parent | qt6-build.eclass: filter-lto globally (diff) | |
download | gentoo-a5ce5928597cb3096554d706c1b567164d5066ef.tar.gz gentoo-a5ce5928597cb3096554d706c1b567164d5066ef.tar.bz2 gentoo-a5ce5928597cb3096554d706c1b567164d5066ef.zip |
qt6-build.eclass: prevent passing -O2 after user's C(XX)FLAGS
Skip on qttranslation given it is the only that compiles
nothing, and so gives a unused option warning.
Closes: https://bugs.gentoo.org/911822
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qt6-build.eclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/qt6-build.eclass b/eclass/qt6-build.eclass index 696dd87b4aa2..6d79bf3b6824 100644 --- a/eclass/qt6-build.eclass +++ b/eclass/qt6-build.eclass @@ -119,6 +119,9 @@ qt6-build_src_configure() { -DQT_BUILD_TESTS=$(in_iuse test && usev test ON || echo OFF) ) + [[ ${PN} != qttranslations ]] && # compiles nothing (unused option) + mycmakeargs+=( -DQT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS=ON ) #911822 + # LTO cause test failures in several components (e.g. qtcharts, # multimedia, scxml, wayland, webchannel, ...). # |