Feature #14462 ยป jit-version.diff
| include/ruby/ruby.h | ||
|---|---|---|
| /* version.c */ | ||
| void ruby_show_version(void); | ||
| void ruby_show_version_with_jit(int jit_on); | ||
| void ruby_show_copyright(void); | ||
| ruby.c | ||
|---|---|---|
| 	rb_warning("-K is specified; it is for 1.8 compatibility and may cause odd behavior"); | ||
|     if (opt->dump & (DUMP_BIT(version) | DUMP_BIT(version_v))) { | ||
| 	ruby_show_version(); | ||
| 	int jit_on = opt->mjit.on; | ||
| #ifdef MJIT_FORCE_ENABLE | ||
| 	jit_on = 1; | ||
| #endif | ||
| 	ruby_show_version_with_jit(jit_on); | ||
| 	if (opt->dump & DUMP_BIT(version)) return Qtrue; | ||
|     } | ||
|     if (opt->dump & DUMP_BIT(copyright)) { | ||
| version.c | ||
|---|---|---|
| void | ||
| ruby_show_version(void) | ||
| { | ||
|     PRINT(description); | ||
|     ruby_show_version_with_jit(0); | ||
| } | ||
| /*! Prints the version information of the CRuby interpreter to stdout, including JIT information. */ | ||
| void | ||
| ruby_show_version_with_jit(int jit_on) | ||
| { | ||
|     printf("%s", ruby_description); | ||
|     if (jit_on) printf(" +JIT");  | ||
|     printf("\n"); | ||
| #ifdef RUBY_LAST_COMMIT_TITLE | ||
|     fputs("last_commit=" RUBY_LAST_COMMIT_TITLE, stdout); | ||
| #endif | ||