[issue42825] Build libraries with "/OPT:REF" linker optimization on Windows

Steve Dower report at bugs.python.org
Mon Feb 1 14:51:38 EST 2021


Steve Dower <steve.dower at python.org> added the comment:

On Windows it should only affect non-exported functions. Comparing "dumpbin /exports" output will tell you whether anything has changed there.

The bigger concern is if it merges identical functions that are compared by function pointer. I know we've had issues with that in the past, and I forget how we've dealt with that. I thought OPT:REF would do this optimisation too (though ISTR it's known as COMDAT folding and may have its own option).

----------

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


More information about the Python-bugs-list mailing list