@@ -58,7 +58,7 @@ class RubyWasm::Packager
5858 def initialize : (RubyWasm::Packager) -> void
5959 def build : (RubyWasm::BuildExecutor, untyped options) -> String
6060 def build_gem_exts : (RubyWasm::BuildExecutor, string gem_home) -> void
61- def link_gem_exts : (RubyWasm::BuildExecutor, string gem_home, bytes module_bytes) -> bytes
61+ def link_gem_exts : (RubyWasm::BuildExecutor, string ruby_root, string gem_home, bytes module_bytes) -> bytes
6262
6363 extend Forwardable
6464
@@ -75,7 +75,8 @@ class RubyWasm::Packager
7575 def build : (RubyWasm::BuildExecutor, untyped options) -> String
7676 def specs_with_extensions : () -> Array[[untyped , Array[string]]]
7777 def build_gem_exts : (RubyWasm::BuildExecutor, string gem_home) -> void
78- def link_gem_exts : (RubyWasm::BuildExecutor, string gem_home, bytes module_bytes) -> bytes
78+ def link_gem_exts : (RubyWasm::BuildExecutor, string ruby_root, string gem_home, bytes module_bytes) -> bytes
79+ def wasi_exec_model : () -> String
7980 end
8081
8182 class DynamicLinking < RubyWasm::Packager::Core::BuildStrategy
@@ -84,7 +85,7 @@ class RubyWasm::Packager
8485 def name : () -> string
8586
8687 private def _build_gem_exts : (RubyWasm::BuildExecutor, RubyWasm::Build, string gem_home) -> void
87- private def _link_gem_exts : (RubyWasm::BuildExecutor, RubyWasm::Build, string gem_home) -> bytes
88+ private def _link_gem_exts : (RubyWasm::BuildExecutor, RubyWasm::Build, string ruby_root, string gem_home, bytes module_bytes ) -> bytes
8889 end
8990
9091 class StaticLinking < RubyWasm::Packager::Core::BuildStrategy
@@ -105,6 +106,7 @@ class RubyWasm::Packager
105106 def initialize : (string dest_dir, RubyWasm::Packager) -> void
106107 def package_ruby_root : (String tarball, RubyWasm::BuildExecutor) -> void
107108 def remove_stdlib : (RubyWasm::BuildExecutor) -> void
109+ def remove_stdlib_component : (RubyWasm::BuildExecutor, string) -> void
108110 def package_gems : () -> void
109111
110112 def setup_rb_content : () -> String
0 commit comments