[issue45373] ./configure --enable-optimizations should enable LTO

STINNER Victor report at bugs.python.org
Tue Oct 5 05:38:32 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

Pablo:
> IIRC activating lto is specially annoying on MacOS due to the need of some llvm components that are a bit hard to get. Let me dig a bit to see if I reproduce the problem

Ah, I guess that you are referring to this requirement:
"The C compiler Clang requires llvm-ar for LTO (ar on macOS), as well as an LTO-aware linker (ld.gold or lld)."
https://docs.python.org/dev/using/configure.html#cmdoption-with-lto

Maybe configure can enable LTO on all platforms but macOS.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45373>
_______________________________________


More information about the Python-bugs-list mailing list