diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-08-01 17:05:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-01 17:05:00 (GMT) |
commit | 6ef8f8ca88b925685c6af83a9f0a899e565e1e33 (patch) | |
tree | f7ac1034b83c6504f6f15139a11bae5922555655 /Tools/build | |
parent | 49f238e78c36532bcbca7f9cd172703eb4df319b (diff) | |
download | cpython-6ef8f8ca88b925685c6af83a9f0a899e565e1e33.zip cpython-6ef8f8ca88b925685c6af83a9f0a899e565e1e33.tar.gz cpython-6ef8f8ca88b925685c6af83a9f0a899e565e1e33.tar.bz2 |
gh-105481: the ENABLE_SPECIALIZATION flag does not need to be generated by the build script, or exposed in opcode.py (#107534)
Diffstat (limited to 'Tools/build')
-rw-r--r-- | Tools/build/generate_opcode_h.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Tools/build/generate_opcode_h.py b/Tools/build/generate_opcode_h.py index 19e5eab..2259dad 100644 --- a/Tools/build/generate_opcode_h.py +++ b/Tools/build/generate_opcode_h.py @@ -73,7 +73,6 @@ def main(opcode_py, opname = opcode['opname'] is_pseudo = opcode['is_pseudo'] - ENABLE_SPECIALIZATION = opcode["ENABLE_SPECIALIZATION"] MIN_PSEUDO_OPCODE = opcode["MIN_PSEUDO_OPCODE"] MAX_PSEUDO_OPCODE = opcode["MAX_PSEUDO_OPCODE"] MIN_INSTRUMENTED_OPCODE = opcode["MIN_INSTRUMENTED_OPCODE"] @@ -141,10 +140,6 @@ def main(opcode_py, for i, (op, _) in enumerate(opcode["_nb_ops"]): fobj.write(DEFINE.format(op, i)) - fobj.write("\n") - fobj.write("/* Defined in Lib/opcode.py */\n") - fobj.write(f"#define ENABLE_SPECIALIZATION {int(ENABLE_SPECIALIZATION)}") - iobj.write("\n") iobj.write(f"\nextern const char *const _PyOpcode_OpName[{NUM_OPCODES}];\n") iobj.write("\n#ifdef NEED_OPCODE_TABLES\n") |