aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maximechevalierb@gmail.com>2021-04-24 00:16:48 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:34 -0400
commit96f4f918b04fad1401d4f41cd11d97d9d4d28c7d (patch)
tree27959163baee644317499d709913c12fc683890b /ruby.c
parent4c7afa64b49d792da586709b2bbc1aa2f04b5712 (diff)
downloadruby-96f4f918b04fad1401d4f41cd11d97d9d4d28c7d.tar.gz
Implement greedy versioning. Refactor versioning logic. (#10)
* Implement eager versioning. Refactor versioning logic. * Add --version-limit and --greedy-versioning command-line args
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 11c53dcdbf..8ac7844375 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1039,6 +1039,12 @@ setup_yjit_options(const char *s, struct rb_yjit_options *yjit_opt)
if (opt_match_arg(s, l, "call-threshold")) {
yjit_opt->call_threshold = atoi(s + 1);
}
+ else if (opt_match_arg(s, l, "version-limit")) {
+ yjit_opt->version_limit = atoi(s + 1);
+ }
+ else if (opt_match_noarg(s, l, "greedy-versioning")) {
+ yjit_opt->greedy_versioning = true;
+ }
else if (opt_match_noarg(s, l, "stats")) {
yjit_opt->gen_stats = true;
}