[issue44340] Add support for building cpython with clang thin lto

2021-06-07 Thread Brett Holman
Change by Brett Holman : -- keywords: +patch pull_requests: +25169 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26585 ___ Python tracker <https://bugs.python.org/issu

[issue44340] Add support for building cpython with clang thin lto

2021-06-07 Thread Brett Holman
New submission from Brett Holman : The existing --with-lto argument could be extended to pass through a value to select non-default lto compiler options: CC=clang ./configure --with-lto=thin This would allow default behavior to remain unchanged, while allowing those that want to use thin