This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients benjamin.peterson, jdemeyer, petr.viktorin, pitrou
Date 2019-05-30.07:43:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559202228.98.0.967762980868.issue37097@roundup.psfhosted.org>
In-reply-to
Content
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)
History
Date User Action Args
2019-05-30 07:43:49jdemeyersetrecipients: + jdemeyer, pitrou, benjamin.peterson, petr.viktorin
2019-05-30 07:43:48jdemeyersetmessageid: <1559202228.98.0.967762980868.issue37097@roundup.psfhosted.org>
2019-05-30 07:43:48jdemeyerlinkissue37097 messages
2019-05-30 07:43:48jdemeyercreate