]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix build on non-JIT
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Fri, 24 Oct 2025 08:01:07 +0000 (09:01 +0100)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Fri, 24 Oct 2025 08:01:07 +0000 (09:01 +0100)
Python/ceval.c

index f4bf7b244dc794ce5540701a4f11dfe323f5b40c..91bb38acdb42d1b29b35221c03629a024425ea2c 100644 (file)
@@ -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.
  */