Can’t build Python 3.14 with JIT and without GIL

Hello, I wanted to build python 3.14 with JIT compiler and without GIL, for some of my tests,I use pyenv and the following flags:

PROFILE_TASK=‘-m test.regrtest --pgo -j0’ PYTHON_CONFIGURE_OPTS=‘–disable-gil --enable-experimental-jit --enable-optimizations --with-lto’ PYTHON_CFLAGS=‘-march=native -mtune=native’ pyenv install 3.14.0

But I get the following message at the build stage saying that i can’t use both of these options right now:

configure: error: --enable-experimental-jit cannot be used with --disable-gil.

I did not find any mention of this in the documentation, moreover these flags allowed to assemble 3.13 without problems. Something has changed that makes it impossible to use both flags at the same time?

See Make the JIT thread-safe · Issue #133171 · python/cpython · GitHub. In short, in 3.13, when --enable-experimental-jit --disable-gil is specified, the JIT is built but never used. For now, the --enable-experimental-jit --disable-gil combination has been disallowed.

Thank you for the explanation