YJIT_STATS instead of RUBY_DEBUG for --yjit-stats in help printout

This commit is contained in:
Alan Wu 2021-10-07 17:53:59 -04:00
Родитель d4fae3e390
Коммит 1f25bba7b7
1 изменённых файлов: 1 добавлений и 1 удалений

2
ruby.c
Просмотреть файл

@ -356,7 +356,7 @@ usage(const char *name, int help, int highlight, int columns)
M("--jit-min-calls=num", "", "Number of calls to trigger JIT (for testing, default: 10000)"),
};
static const struct message yjit_options[] = {
#if RUBY_DEBUG
#if YJIT_STATS
M("--yjit-stats", "", "Enable collecting YJIT statistics"),
#endif
M("--yjit-exec-mem-size=num", "", "Size of executable memory block in MiB (default: 256)"),