diff --git a/Python/sysmodule.c b/Python/sysmodule.c index e70c5d0df29d8f3..5bdfca549e08d1a 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2287,7 +2287,7 @@ sys_activate_stack_trampoline_impl(PyObject *module, const char *backend) /*[clinic end generated code: output=5783cdeb51874b43 input=a12df928758a82b4]*/ { #ifdef PY_HAVE_PERF_TRAMPOLINE -#ifdef _Py_TIER2 +#ifdef _Py_JIT _PyOptimizerObject* optimizer = _Py_GetOptimizer(); if (optimizer != NULL) { PyErr_SetString(PyExc_ValueError, "Cannot activate the perf trampoline if the JIT is active");