Message343952
The function python_is_optimized() in Lib/test/support.py:
def python_is_optimized():
"""Find if Python was built with optimizations."""
cflags = sysconfig.get_config_var('PY_CFLAGS') or ''
final_opt = ""
for opt in cflags.split():
if opt.startswith('-O'):
final_opt = opt
return final_opt not in ('', '-O0', '-Og')
However, it seems that the *default* (when no special CFLAGS are configured) is -O3. My Python build is done with this default -O3 but python_is_optimized() returns False. This is the reason why I didn't catch the buildbot failure at
https://github.com/python/cpython/pull/13185#issuecomment-497062965
(this test is only run when python_is_optimized() is True) |
|
Date |
User |
Action |
Args |
2019-05-30 07:43:49 | jdemeyer | set | recipients:
+ jdemeyer, pitrou, benjamin.peterson, petr.viktorin |
2019-05-30 07:43:48 | jdemeyer | set | messageid: <1559202228.98.0.967762980868.issue37097@roundup.psfhosted.org> |
2019-05-30 07:43:48 | jdemeyer | link | issue37097 messages |
2019-05-30 07:43:48 | jdemeyer | create | |
|