Commit 582265f4 authored by Victor Stinner's avatar Victor Stinner

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

-Og does not optimize the C code, it's just "fast debugging".
parent 837d760c
......@@ -72,7 +72,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')
def gdb_has_frame_select():
# Does this build of gdb have gdb.Frame.select ?
......
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