8000 [3.12] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) by vstinner · Pull Request #130573 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550) #130573

New issu 8000 e

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
GH-130396: Treat clang -Og as optimized for gdb tests (GH-130550)
(cherry picked from commit 129db32)
  • Loading branch information
markshannon authored and vstinner committed Feb 26, 2025
commit 1a7e60a84d2de19c59e0480c1d023c2c159ad4c4
6 changes: 5 additions & 1 deletion Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
Loading
0