From d61f8be0eadca5b388d3fbfee5fcb11917aa3acc Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Aug 14 2017 15:43:18 +0000 Subject: Enable profile guided optimizations. Enable link time optimizations. Enable the test suite. --- diff --git a/platform-python.spec b/platform-python.spec index 9ac3738..4e39649 100644 --- a/platform-python.spec +++ b/platform-python.spec @@ -97,7 +97,7 @@ %global with_computed_gotos yes # Turn this to 0 to turn off the "check" phase: -%global run_selftest_suite 0 +%global run_selftest_suite 1 # We want to byte-compile the .py files within the packages using the new # python3 binary. @@ -656,6 +656,7 @@ BuildPython() { --with-system-expat \ --with-system-ffi \ --enable-loadable-sqlite-extensions \ + --with-lto \ %if 0%{?with_valgrind} --with-valgrind \ %endif @@ -683,7 +684,7 @@ BuildPython optimized \ python \ python%{pybasever} \ %ifarch %{ix86} x86_64 - "--without-ensurepip" \ + "--without-ensurepip --enable-optimizations" \ %else "--without-ensurepip" \ %endif