mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-103053: Skip test_freeze_simple_script() on PGO build (#109591)
Skip test_freeze_simple_script() of test_tools.test_freeze if Python is built with "./configure --enable-optimizations", which means with Profile Guided Optimization (PGO): it just makes the test too slow. The freeze tool is tested by many other CIs with other (faster) compiler flags. test.pythoninfo now gets also get_build_info() of test.libregrtests.utils.
This commit is contained in:
parent
3e3a7da590
commit
81cd1bd713
5 changed files with 36 additions and 10 deletions
|
@ -310,16 +310,8 @@ def get_build_info():
|
|||
elif '-flto' in ldflags_nodist:
|
||||
optimizations.append('LTO')
|
||||
|
||||
# --enable-optimizations
|
||||
pgo_options = (
|
||||
# GCC
|
||||
'-fprofile-use',
|
||||
# clang: -fprofile-instr-use=code.profclangd
|
||||
'-fprofile-instr-use',
|
||||
# ICC
|
||||
"-prof-use",
|
||||
)
|
||||
if any(option in cflags_nodist for option in pgo_options):
|
||||
if support.check_cflags_pgo():
|
||||
# PGO (--enable-optimizations)
|
||||
optimizations.append('PGO')
|
||||
if optimizations:
|
||||
build.append('+'.join(optimizations))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue