mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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:
parent
79fd962652
commit
d7aa5248fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue