summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-07 21:16:05 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-07 21:19:04 -0800
commit1d39d2d334f2472a1694ff861ad8c27cefea819b (patch)
tree2ee2bd6da1ad60db3865b55fbde84895f48c77f0 /ruby.c
parent00d6772e400b55b72f81285d66ac2c2834a87c18 (diff)
downloadruby-1d39d2d334f2472a1694ff861ad8c27cefea819b.tar.gz
Update options available in RJIT
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ruby.c b/ruby.c
index cdbdd2dd08..72b69e71a2 100644
--- a/ruby.c
+++ b/ruby.c
@@ -321,20 +321,17 @@ usage(const char *name, int help, int highlight, int columns)
M("syntax_suggest", "", "syntax_suggest (default: "DEFAULT_RUBYGEMS_ENABLED")"),
M("rubyopt", "", "RUBYOPT environment variable (default: enabled)"),
M("frozen-string-literal", "", "freeze all string literals (default: disabled)"),
-#if USE_RJIT
- M("rjit", "", "C compiler-based JIT compiler (default: disabled)"),
-#endif
#if USE_YJIT
M("yjit", "", "in-process JIT compiler (default: disabled)"),
#endif
+#if USE_RJIT
+ M("rjit", "", "pure-Ruby JIT compiler (default: disabled)"),
+#endif
};
static const struct ruby_opt_message warn_categories[] = {
M("deprecated", "", "deprecated features"),
M("experimental", "", "experimental features"),
};
-#if USE_RJIT
- extern const struct ruby_opt_message rjit_option_messages[];
-#endif
#if USE_YJIT
static const struct ruby_opt_message yjit_options[] = {
M("--yjit-stats", "", "Enable collecting YJIT statistics"),
@@ -344,6 +341,9 @@ usage(const char *name, int help, int highlight, int columns)
M("--yjit-greedy-versioning", "", "Greedy versioning mode (default: disabled)"),
};
#endif
+#if USE_RJIT
+ extern const struct ruby_opt_message rjit_option_messages[];
+#endif
int i;
const char *sb = highlight ? esc_standout+1 : esc_none;
const char *se = highlight ? esc_reset : esc_none;
@@ -370,16 +370,16 @@ usage(const char *name, int help, int highlight, int columns)
printf("%s""Warning categories:%s\n", sb, se);
for (i = 0; i < numberof(warn_categories); ++i)
SHOW(warn_categories[i]);
-#if USE_RJIT
- printf("%s""RJIT options (experimental):%s\n", sb, se);
- for (i = 0; rjit_option_messages[i].str; ++i)
- SHOW(rjit_option_messages[i]);
-#endif
#if USE_YJIT
printf("%s""YJIT options:%s\n", sb, se);
for (i = 0; i < numberof(yjit_options); ++i)
SHOW(yjit_options[i]);
#endif
+#if USE_RJIT
+ printf("%s""RJIT options (experimental):%s\n", sb, se);
+ for (i = 0; rjit_option_messages[i].str; ++i)
+ SHOW(rjit_option_messages[i]);
+#endif
}
#define rubylib_path_new rb_str_new