Commit d7aa5248 authored by Victor Stinner's avatar Victor Stinner

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

-Og does not optimize the C code, it's just "fast debugging".
parent 79fd9626
...@@ -1438,7 +1438,7 @@ def python_is_optimized(): ...@@ -1438,7 +1438,7 @@ def python_is_optimized():
for opt in cflags.split(): for opt in cflags.split():
if opt.startswith('-O'): if opt.startswith('-O'):
final_opt = opt final_opt = opt
return final_opt != '' and final_opt != '-O0' return final_opt not in ('', '-O0', '-Og')
_header = 'nP' _header = 'nP'
......
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