From e1d5f41c5f8fba38e61b48835726195cf37642bc Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:04:18 +0800 Subject: [PATCH] Add to makefile --- Makefile.pre.in | 1 + Python/ceval.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile.pre.in b/Makefile.pre.in index 0f2f144372d6b1..9aba7881f5973f 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -2061,6 +2061,7 @@ Python/ceval.o: \ $(srcdir)/Python/ceval_macros.h \ $(srcdir)/Python/condvar.h \ $(srcdir)/Python/generated_cases.c.h \ + $(srcdir)/Python/generated_tail_call_handlers.c.h \ $(srcdir)/Python/executor_cases.c.h \ $(srcdir)/Python/opcode_targets.h diff --git a/Python/ceval.c b/Python/ceval.c index 2c182989f42b24..71027ead4cc053 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -803,8 +803,10 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int #ifdef Py_STATS int lastopcode = 0; #endif +#ifndef Py_TAIL_CALL_INTERP uint8_t opcode; /* Current opcode */ int oparg; /* Current opcode argument, if any */ +#endif #ifdef LLTRACE int lltrace = 0; #endif