File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def self.check_executable(command)
4646 %i[ cc cxx ranlib ld ar ] . each do |name |
4747 define_method ( name ) do
4848 @tools_cache ||= { } #: Hash[String, String]
49- @tools_cache [ name ] ||= find_tool ( name )
49+ __skip__ = @tools_cache [ name ] ||= find_tool ( name )
5050 @tools_cache [ name ]
5151 end
5252 end
Original file line number Diff line number Diff line change 11module RubyWasm ::Packager ::ComponentAdapter
2- module_function
3-
42 # The path to the component adapter for the given WASI execution model.
53 #
64 # @param exec_model [String] "command" or "reactor"
7- def wasi_snapshot_preview1 ( exec_model )
5+ def self . wasi_snapshot_preview1 ( exec_model )
86 File . join (
97 File . dirname ( __FILE__ ) ,
108 "component_adapter" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ module RubyWasm
2929
3030 def initialize : (stdout: IO, stderr: IO) -> void
3131
32+ def run : (Array[String] args) -> void
33+
3234 def build : (Array[String] args) -> void
35+ def do_build_with_force_ruby_platform : (cli_options options) -> void
3336 def pack : (Array[String] args) -> void
3437
3538 private
@@ -49,5 +52,6 @@ module RubyWasm
4952
5053 self .@logger: Logger?
5154 def self.logger : () -> Logger
55+ def self.logger= : (Logger) -> void
5256 attr_accessor self .log_level: Symbol
5357end
Original file line number Diff line number Diff line change @@ -70,8 +70,12 @@ class RubyWasm::Packager
7070 def build_strategy : () -> BuildStrategy
7171
7272 class BuildStrategy
73+ include RubyWasm::_Cacheable
74+
7375 @packager: RubyWasm::Packager
7476 def initialize : (RubyWasm::Packager) -> void
77+ def target : () -> RubyWasm::Target
78+ def artifact : () -> string
7579 def build : (RubyWasm::BuildExecutor, untyped options) -> String
7680 def specs_with_extensions : () -> Array[[untyped , Array[string]]]
7781 def build_gem_exts : (RubyWasm::BuildExecutor, string gem_home) -> void
You can’t perform that action at this time.
0 commit comments