fixed: `onyx package migrate` since addition of `--generate-method-info`
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 7 Feb 2024 04:21:19 +0000 (22:21 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 7 Feb 2024 04:21:19 +0000 (22:21 -0600)
compiler/src/onyx.c

index 1808f859a1be749791b9656462de3308cb88cd93..986ad31cd1b315c9ca05d2dec680942412502ca3 100644 (file)
@@ -191,6 +191,7 @@ static CompileOptions compile_opts_parse(bh_allocator alloc, int argc, char *arg
         options.action = ONYX_COMPILE_ACTION_RUN;
         options.passthrough_argument_count = argc - 2;
         options.passthrough_argument_data  = &argv[2];
+        options.generate_method_info = 1; // The package manager needs this to be enabled.
         arg_parse_start = argc;
 
         bh_arr_push(options.files, bh_aprintf(alloc, "%s/tools/onyx-pkg.onyx", core_installation));