Skip to content

Commit 72c2242

Browse files
restore non-jit builds
1 parent a8762c2 commit 72c2242

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Python/opcode_targets.h

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/target_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ def write_opcode_targets(analysis: Analysis, out: CWriter) -> None:
3535
for name, op in analysis.opmap.items():
3636
if op < 256:
3737
targets[op] = f"&&TARGET_TRACING_{name},\n"
38+
out.emit("#if _Py_TIER2\n")
3839
out.emit("static void *opcode_tracing_targets_table[256] = {\n")
3940
for target in targets:
4041
out.emit(target)
4142
out.emit("};\n")
43+
out.emit(f"#endif\n")
4244
out.emit("#else /* _Py_TAIL_CALL_INTERP */\n")
4345

4446
def function_proto(name: str) -> str:

0 commit comments

Comments
 (0)