mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
PY_CFLAGS doesn't exist under Windows
This commit is contained in:
parent
b643ef8f8e
commit
64474542eb
1 changed files with 1 additions and 1 deletions
|
@ -890,7 +890,7 @@ def gc_collect():
|
|||
|
||||
def python_is_optimized():
|
||||
"""Find if Python was built with optimizations."""
|
||||
cflags = sysconfig.get_config_vars()['PY_CFLAGS']
|
||||
cflags = sysconfig.get_config_var('PY_CFLAGS') or ''
|
||||
final_opt = ""
|
||||
for opt in cflags.split():
|
||||
if opt.startswith('-O'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue