Issue #23445: Fix test.support.python_is_optimized() for CFLAGS=-Og

-Og does not optimize the C code, it's just "fast debugging".
This commit is contained in:
Victor Stinner 2015-03-27 15:36:01 +01:00
parent 79fd962652
commit d7aa5248fb

View file

@ -1438,7 +1438,7 @@ def python_is_optimized():
for opt in cflags.split():
if opt.startswith('-O'):
final_opt = opt
return final_opt != '' and final_opt != '-O0'
return final_opt not in ('', '-O0', '-Og')
_header = 'nP'