diff options
author | HParker <[email protected]> | 2023-12-07 15:47:36 -0800 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2023-12-15 13:42:19 -0500 |
commit | 55326a915f25608be1d40ab32baa9fc57762615d () | |
tree | 69dc288dcadf3e09206c287919be5c7d9711edc2 /version.c | |
parent | 655c02790ee5aca122d3593fadab5b41a42a1899 (diff) |
Introduce --parser runtime flag
Introduce runtime flag for specifying the parser, ``` ruby --parser=prism ``` also update the description: ``` $ ruby --parser=prism --version ruby 3.3.0dev (2023-12-08T04:47:14Z add-parser-runtime.. 0616384c9f) +PRISM [x86_64-darwin23] ``` [Bug #20044]
-rw-r--r-- | version.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -141,6 +141,8 @@ Init_version(void) int ruby_mn_threads_enabled; static void define_ruby_description(const char *const jit_opt) { @@ -151,15 +153,18 @@ define_ruby_description(const char *const jit_opt) ]; const char *const threads_opt = ruby_mn_threads_enabled ? " +MN" : ""; int n = snprintf(desc, sizeof(desc), "%.*s" "%s" // jit_opt "%s" // threads_opts "%s", ruby_description_opt_point, ruby_description, jit_opt, threads_opt, ruby_description + ruby_description_opt_point); VALUE description = rb_obj_freeze(rb_usascii_str_new_static(desc, n)); |