From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Fri, 24 Oct 2025 08:01:07 +0000 (+0100) Subject: fix build on non-JIT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb17571c321dc57c11fa14c6f9282de8b21ba30;p=thirdparty%2FPython%2Fcpython.git fix build on non-JIT --- diff --git a/Python/ceval.c b/Python/ceval.c index f4bf7b244dc7..91bb38acdb42 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -984,6 +984,7 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch) } } +#if _Py_TIER2 // 0 for success, -1 for error. static int bail_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame) @@ -996,6 +997,7 @@ bail_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame) _PyJit_FinalizeTracing(tstate); return err; } +#endif /* _PyEval_EvalFrameDefault is too large to optimize for speed with PGO on MSVC. */