diff options
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 34a687a..06fd29e 100644 --- a/src/main.zig +++ b/src/main.zig @@ -355,6 +355,13 @@ pub fn main(init: std.process.Init) !void { ); } + // Bootstrap staged `panto.so` onto the embedded VM's cpath and + // configured `package.path`/`cpath`; now wire `require('panto')` to + // the native module + the CLI's `ext` subtable. Must run before + // `installScheduler` (which writes onto the module table) and before + // any extension loads (which `require('panto')`). + try rt.installPantoModule(); + // luv is installed (or already present) at this point; wire the // libuv-driven coroutine scheduler before any extensions get a // chance to register tools that might want to yield. |
