Skip to content

Commit

Permalink
Add CI_CO_SUPPRESS_JIT flag
Browse files Browse the repository at this point in the history
Summary: We still need to apply this in the Python compiler, but at least it exists to get things moving for now.

Reviewed By: DinoV

Differential Revision: D60866627

fbshipit-source-id: 64a06d8f89e31f8e3fa09c4efe0f48b324ac7aae
  • Loading branch information
jbower-fb authored and facebook-github-bot committed Aug 7, 2024
1 parent b6e1707 commit f1ac5ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Include/cpython/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ struct PyCodeObject {
#define CO_FUTURE_GENERATOR_STOP 0x800000
#define CO_FUTURE_ANNOTATIONS 0x1000000

/* Cinder */
#define CO_STATICALLY_COMPILED 0x4000000
#define CO_SUPPRESS_JIT 0x40000000
/* end Cinder */
// See also extra-py-flags.h in CinderX. This still needs to be defined here as
// we use this flag in the Python compiler.
#define CI_CO_SUPPRESS_JIT 0x40000000

/* This value is found in the co_cell2arg array when the associated cell
variable does not correspond to an argument. */
Expand Down
2 changes: 1 addition & 1 deletion Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -7130,7 +7130,7 @@ compute_code_flags(struct compiler *c)
if (ste->ste_varkeywords)
flags |= CO_VARKEYWORDS;
if (c->u->u_suppress_jit) {
flags |= CO_SUPPRESS_JIT;
flags |= CI_CO_SUPPRESS_JIT;
}
}

Expand Down

0 comments on commit f1ac5ba

Please sign in to comment.