Commit 64474542 authored by Antoine Pitrou's avatar Antoine Pitrou

PY_CFLAGS doesn't exist under Windows

parent b643ef8f
......@@ -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'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment