diff options
author | Sam James <sam@gentoo.org> | 2021-11-17 10:06:12 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-17 10:46:28 +0000 |
commit | b85750dd2326759e7f102d81e5943bd4e5557a8a (patch) | |
tree | a6588c1f18ba330a598f889c96078cce7c8642e0 /dev-lang | |
parent | dev-lang/python: add PGO (diff) | |
download | gentoo-b85750dd2326759e7f102d81e5943bd4e5557a8a.tar.gz gentoo-b85750dd2326759e7f102d81e5943bd4e5557a8a.tar.bz2 gentoo-b85750dd2326759e7f102d81e5943bd4e5557a8a.zip |
dev-lang/python: add LTO
Bug: https://bugs.gentoo.org/615412
Bug: https://bugs.gentoo.org/700012
Signed-off-by: Sam James <sam@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/22853
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/python/metadata.xml | 1 | ||||
-rw-r--r-- | dev-lang/python/python-3.11.0_alpha2.ebuild | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/dev-lang/python/metadata.xml b/dev-lang/python/metadata.xml index 996b563e4b05..c72b41d56afb 100644 --- a/dev-lang/python/metadata.xml +++ b/dev-lang/python/metadata.xml @@ -8,6 +8,7 @@ <use> <flag name="bluetooth">Build Bluetooth protocol support in socket module</flag> <flag name="pgo">Optimize the build using Profile Guided Optimization (PGO)</flag> + <flag name="lto">Optimize the build using Link Time Optimization (LTO)</flag> <flag name="wininst">Install Windows executables required to create an executable installer for MS Windows.</flag> </use> </pkgmetadata> diff --git a/dev-lang/python/python-3.11.0_alpha2.ebuild b/dev-lang/python/python-3.11.0_alpha2.ebuild index 30e34160ff57..f1e7a4cccaeb 100644 --- a/dev-lang/python/python-3.11.0_alpha2.ebuild +++ b/dev-lang/python/python-3.11.0_alpha2.ebuild @@ -25,7 +25,7 @@ S="${WORKDIR}/${MY_P}" LICENSE="PSF-2" SLOT="${PYVER}" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="bluetooth build examples gdbm hardened +ncurses pgo +readline +sqlite +ssl test tk wininst +xml" +IUSE="bluetooth build examples gdbm hardened lto +ncurses pgo +readline +sqlite +ssl test tk wininst +xml" RESTRICT="!test? ( test )" # Do not add a dependency on dev-lang/python to this ebuild. @@ -185,6 +185,7 @@ src_configure() { --with-system-expat --with-system-ffi + $(use_with lto) $(use_enable pgo optimizations) ) |