@@ -58,7 +58,7 @@ class RubyWasm::Packager
58
58
def initialize : (RubyWasm::Packager) -> void
59
59
def build : (RubyWasm::BuildExecutor, untyped options) -> String
60
60
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
62
62
63
63
extend Forwardable
64
64
@@ -75,7 +75,8 @@ class RubyWasm::Packager
75
75
def build : (RubyWasm::BuildExecutor, untyped options) -> String
76
76
def specs_with_extensions : () -> Array[[untyped , Array[string]]]
77
77
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
79
80
end
80
81
81
82
class DynamicLinking < RubyWasm::Packager::Core::BuildStrategy
@@ -84,7 +85,7 @@ class RubyWasm::Packager
84
85
def name : () -> string
85
86
86
87
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
88
89
end
89
90
90
91
class StaticLinking < RubyWasm::Packager::Core::BuildStrategy
@@ -105,6 +106,7 @@ class RubyWasm::Packager
105
106
def initialize : (string dest_dir, RubyWasm::Packager) -> void
106
107
def package_ruby_root : (String tarball, RubyWasm::BuildExecutor) -> void
107
108
def remove_stdlib : (RubyWasm::BuildExecutor) -> void
109
+ def remove_stdlib_component : (RubyWasm::BuildExecutor, string) -> void
108
110
def package_gems : () -> void
109
111
110
112
def setup_rb_content : () -> String
0 commit comments