On Tue, Oct 15, 2019 at 10:57 PM Victor Stinner <vstin...@python.org> wrote: > > Hi Inada-san, > > You can query the sysconfig module to check how Python has been built.
Thank you for pointing it out. It seems official macOS binary doesn't use --enable-optimizations and --with-lto options... Python 3.8.0 (v3.8.0:fa919fdf25, Oct 14 2019, 10:23:27) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sysconfig >>> sysconfig.get_config_var('PY_CFLAGS') '-Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g' >>> sysconfig.get_config_var('PY_CFLAGS_NODIST') '-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -I/Users/sysadmin/build/v3.8.0/Include/internal' >>> sysconfig.get_config_var('PY_LDFLAGS_NODIST') '' >>> sysconfig.get_config_var('PY_LDFLAGS') '-arch x86_64 -g' -- Inada Naoki <songofaca...@gmail.com> _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/VUA2AG6J2QG2GK52DZ4VKZMRUTKJ4DWO/ Code of Conduct: http://python.org/psf/codeofconduct/