mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-strip doesn't need mrbgems
Reduces executable size by more than 50% (409->171 KB).
This commit is contained in:
@@ -142,7 +142,7 @@ main(int argc, char **argv)
|
||||
print_usage(argv[0]);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
mrb = mrb_open();
|
||||
mrb = mrb_open_core(mrb_default_allocf, NULL);
|
||||
if (mrb == NULL) {
|
||||
fputs("Invalid mrb_state, exiting mruby-strip\n", stderr);
|
||||
return EXIT_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user