We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3abcace commit f1897d3Copy full SHA for f1897d3
1 file changed
Lib/test/support/__init__.py
@@ -768,7 +768,11 @@ def python_is_optimized():
768
for opt in cflags.split():
769
if opt.startswith('-O'):
770
final_opt = opt
771
- return final_opt not in ('', '-O0', '-Og')
+ if sysconfig.get_config_var("CC") == "gcc":
772
+ non_opts = ('', '-O0', '-Og')
773
+ else:
774
+ non_opts = ('', '-O0')
775
+ return final_opt not in non_opts
776
777
778
def check_cflags_pgo():
0 commit comments