From 8f6e3122a8726d188cdcda5e705f3f530a5f9943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 15 Aug 2019 16:51:16 +0200 Subject: [PATCH] Enable Profile-guided optimization for all arches, not just x86 This increases the build time (to ~2 hours on armv7hl Koji), but should bring more optimized Python to architectures other than x86. The build time overhead is not so big on Python 3.8, as only a limited number of tests is used. Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1741015 --- python38.spec | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/python38.spec b/python38.spec index 85512cf..ecae9fe 100644 --- a/python38.spec +++ b/python38.spec @@ -17,7 +17,7 @@ URL: https://www.python.org/ %global prerel b3 %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} -Release: 1%{?dist} +Release: 2%{?dist} License: Python @@ -52,13 +52,7 @@ License: Python %bcond_without rpmwheels # Expensive optimizations (mainly, profile-guided optimizations) -%ifarch %{ix86} x86_64 %bcond_without optimizations -%else -# On some architectures, the optimized build takes tens of hours, possibly -# longer than Koji's 24-hour timeout. Disable optimizations here. -%bcond_with optimizations -%endif # Run the test suite in %%check %bcond_without tests @@ -1528,6 +1522,9 @@ CheckPython optimized # ====================================================== %changelog +* Sat Aug 31 2019 Miro Hrončok - 3.8.0~b3-2 +- Enable Profile-guided optimization for all arches, not just x86 (#1741015) + * Mon Jul 29 2019 Miro Hrončok - 3.8.0~b3-1 - Update to 3.8.0b3