Revert "Load external GC using command line argument"

This reverts commit 8ddb1110c2.
This commit is contained in:
Peter Zhu 2024-07-04 10:35:25 -04:00
parent 32ba86c9be
commit 8fd2df529b
3 changed files with 16 additions and 26 deletions

10
ruby.c
View file

@ -1441,16 +1441,6 @@ proc_long_options(ruby_cmdline_options_t *opt, const char *s, long argc, char **
else if (is_option_with_arg("source-encoding", Qfalse, Qtrue)) {
set_source_encoding_once(opt, s, 0);
}
#endif
#if defined(USE_SHARED_GC) && USE_SHARED_GC
else if (is_option_with_arg("gc-library", Qfalse, Qfalse)) {
// no-op
// Handled by ruby_load_external_gc_from_argv
if (!dln_supported_p()) {
rb_warn("--gc-library is ignored because this executable file can't load extension libraries");
}
}
#endif
else if (strcmp("version", s) == 0) {
if (envopt) goto noenvopt_long;