Skip to content

Commit 5c98d1a

Browse files
alexmalyshevmeta-codesync[bot]
authored andcommitted
Add env vars for controlling max code size and type annotation guards
Summary: Makes it easier to experiment. We missed adding env vars to these options. Reviewed By: yoney Differential Revision: D87655476 fbshipit-source-id: af06c30a51e765bd3daf0938fbe40e4bdae51ada
1 parent 70e0b74 commit 5c98d1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cinderx/Jit/pyjit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ FlagProcessor initFlagProcessor() {
751751

752752
flag_processor.addOption(
753753
"jit-max-code-size",
754-
"",
754+
"PYTHONJITMAXCODESIZE",
755755
[](const std::string& val) {
756756
getMutableConfig().max_code_size = parse_sized_argument(val);
757757
},
@@ -761,7 +761,7 @@ FlagProcessor initFlagProcessor() {
761761

762762
flag_processor.addOption(
763763
"jit-emit-type-annotation-guards",
764-
"",
764+
"PYTHONJITTYPEANNOTATIONGUARDS",
765765
getMutableConfig().emit_type_annotation_guards,
766766
"Generate runtime checks that validate type annotations to specialize "
767767
"generated code.");

0 commit comments

Comments
 (0)