Skip to content

Commit dda9996

Browse files
authored
[mono][interp] Add possibility to configure interp options from env var (#116215)
1 parent 6fa4227 commit dda9996

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mono/mono/mini/interp/interp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9039,6 +9039,10 @@ mono_ee_interp_init (const char *opts)
90399039
set_context (NULL);
90409040

90419041
interp_parse_options (opts);
9042+
9043+
const char *env_opts = g_getenv ("MONO_INTERPRETER_OPTIONS");
9044+
if (env_opts)
9045+
interp_parse_options (env_opts);
90429046
/* Don't do any optimizations if running under debugger */
90439047
if (mini_get_debug_options ()->mdb_optimizations)
90449048
mono_interp_opt = 0;

0 commit comments

Comments
 (0)