mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.12] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) (#130573)
GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550)
(cherry picked from commit 129db32d6f)
Co-authored-by: Mark Shannon <mark@hotpy.org>
This commit is contained in:
parent
7575abb9d9
commit
c4aeb4c444
1 changed files with 5 additions and 1 deletions
|
|
@ -799,7 +799,11 @@ def python_is_optimized():
|
|||
for opt in cflags.split():
|
||||
if opt.startswith('-O'):
|
||||
final_opt = opt
|
||||
return final_opt not in ('', '-O0', '-Og')
|
||||
if sysconfig.get_config_var("CC") == "gcc":
|
||||
non_opts = ('', '-O0', '-Og')
|
||||
else:
|
||||
non_opts = ('', '-O0')
|
||||
return final_opt not in non_opts
|
||||
|
||||
|
||||
def check_cflags_pgo():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue