Skip to content
Prev Previous commit
Next Next commit
Disallow JIT and NOTIER2 flags together
  • Loading branch information
gvanrossum committed Apr 15, 2024
commit ada980bb462296301411fc085338f8b69ac9cea3
4 changes: 4 additions & 0 deletions Include/internal/pycore_jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ extern "C" {

#ifdef _Py_JIT

#ifdef _Py_NOTIER2
# error "can't define _Py_JIT and _Py_NOTIER2 at the same time"
#endif

typedef _Py_CODEUNIT *(*jit_func)(_PyInterpreterFrame *frame, PyObject **stack_pointer, PyThreadState *tstate);

int _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction *trace, size_t length);
Expand Down