mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572)
This commit is contained in:
parent
f1a0d96f41
commit
f95fc4de11
4 changed files with 19 additions and 0 deletions
|
@ -866,6 +866,15 @@ def check_cflags_pgo():
|
|||
return any(option in cflags_nodist for option in pgo_options)
|
||||
|
||||
|
||||
def check_bolt_optimized():
|
||||
# Always return false, if the platform is WASI,
|
||||
# because BOLT optimization does not support WASM binary.
|
||||
if is_wasi:
|
||||
return False
|
||||
config_args = sysconfig.get_config_var('CONFIG_ARGS') or ''
|
||||
return '--enable-bolt' in config_args
|
||||
|
||||
|
||||
Py_GIL_DISABLED = bool(sysconfig.get_config_var('Py_GIL_DISABLED'))
|
||||
|
||||
def requires_gil_enabled(msg="needs the GIL enabled"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue