Hi,
When discussing issues like this one and printing out Python lines etc. it would be nice if the given CPython build line like this:
Python 3.15.0a0 (heads/main:c6e6fe92cd8, Jul 20 2025, 13:06:47) [GCC 13.3.0] on linux
would include information regarding how the given CPython version was compiled: whether it uses LTO, whether --enable-optimizations was enabled etc.
Maybe we could have some letters like: O for optimized, L for LTO, P for PGO, B for LLVM's BOLT? Maybe even O{1,2,3} for -O{1,2,3} if we allow for choosing this.
Additionally, we could have some _testcapi.compiler_options string?
Has this already been discussed elsewhere?
I am not sure.
Hi,
When discussing issues like this one and printing out Python lines etc. it would be nice if the given CPython build line like this:
would include information regarding how the given CPython version was compiled: whether it uses LTO, whether
--enable-optimizationswas enabled etc.Maybe we could have some letters like:
Ofor optimized,Lfor LTO,Pfor PGO,Bfor LLVM's BOLT? Maybe evenO{1,2,3}for-O{1,2,3}if we allow for choosing this.Additionally, we could have some
_testcapi.compiler_optionsstring?Has this already been discussed elsewhere?
I am not sure.