[issue31354] Fixing a bug related to LTO only build

Charalampos Stratakis report at bugs.python.org
Wed Nov 14 05:16:26 EST 2018


Charalampos Stratakis <cstratak at redhat.com> added the comment:

I'd say yes. In general python may have been compiled with -flto, but it's still a bit buggy from the compilers' side. It doesn't work well always or at all depending on the toolchain, and even if python was compiled with -flto, that doesn't mean that all c extensions compiled using that python build, would work properly with -flto.

In my opinion that should be a flag reserved for python only, if used for its compilation, and not having it propagated to c extensions, similarly to the PGO related flags.

----------

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


More information about the Python-bugs-list mailing list