From 92bba64f1b43582934ff7c94fe7a2e6e444691d2 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sun, 21 Sep 2025 12:29:43 +0100 Subject: [PATCH] fix JIT + debug builds --- Python/bytecodes.c | 2 +- Python/executor_cases.c.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 61e97cb99230..8d3464586e29 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -5465,7 +5465,7 @@ dummy_func( tier2 op(_DYNAMIC_EXIT, (exit_p/4 --)) { _Py_CODEUNIT *target = frame->instr_ptr; -#ifdef Py_DEBUG +#if defined(Py_DEBUG) && !defined(_Py_JIT) if (frame->lltrace >= 2) { printf("GUARD IP EXIT: [UOp "); _PyUOpPrint(&next_uop[-1]); diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h index 62cda4cf98fb..efe3c6f52464 100644 --- a/Python/executor_cases.c.h +++ b/Python/executor_cases.c.h @@ -7560,7 +7560,7 @@ case _DYNAMIC_EXIT: { PyObject *exit_p = (PyObject *)CURRENT_OPERAND0(); _Py_CODEUNIT *target = frame->instr_ptr; - #ifdef Py_DEBUG + #if defined(Py_DEBUG) && !defined(_Py_JIT) if (frame->lltrace >= 2) { _PyFrame_SetStackPointer(frame, stack_pointer); printf("GUARD IP EXIT: [UOp "); -- 2.47.3