Skip to content

Commit b5d5d05

Browse files
Update steep
1 parent f3d79dd commit b5d5d05

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ group :check do
1414
# Use the latest version of webrick for URI change in Ruby 3.4
1515
gem "webrick", "~> 1.8.2"
1616
gem "syntax_tree", "~> 3.5"
17-
gem "steep"
17+
gem "steep", "~> 1.9"
1818
end

lib/ruby_wasm/build/product/crossruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def feature_name(crossruby)
3232
end
3333

3434
def make_args(crossruby)
35-
make_args = []
35+
make_args = [] #: Array[String]
3636
make_args << "CC=#{@toolchain.cc}"
3737
make_args << "CXX=#{@toolchain.cc}"
3838
make_args << "LD=#{@toolchain.ld}"

lib/ruby_wasm/build/product/product.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def initialize(target, toolchain)
1111
@toolchain = toolchain
1212
end
1313
def system_triplet_args
14-
args = []
14+
args = [] #: Array[String]
1515
case @target.triple
1616
when /^wasm32-unknown-wasi/
1717
args.concat(%W[--host wasm32-wasi])
@@ -24,7 +24,7 @@ def system_triplet_args
2424
end
2525

2626
def tools_args
27-
args = []
27+
args = [] #: Array[String]
2828
args << "CC=#{@toolchain.cc}"
2929
args << "CXX=#{@toolchain.cxx}"
3030
args << "LD=#{@toolchain.ld}"

lib/ruby_wasm/build/toolchain.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def self.check_executable(command)
4545

4646
%i[cc cxx ranlib ld ar].each do |name|
4747
define_method(name) do
48-
@tools_cache ||= {}
48+
@tools_cache ||= {} #: Hash[String, String]
4949
@tools_cache[name] ||= find_tool(name)
5050
@tools_cache[name]
5151
end

lib/ruby_wasm/packager/core.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def link_gem_exts(executor, ruby_root, gem_home, module_bytes)
111111
end
112112

113113
def _link_gem_exts(executor, build, ruby_root, gem_home, module_bytes)
114-
libraries = []
114+
libraries = [] #: Array[String]
115115

116116
# TODO: Should be computed from dyinfo of ruby binary
117117
wasi_libc_shared_libs = [
@@ -130,7 +130,7 @@ def _link_gem_exts(executor, build, ruby_root, gem_home, module_bytes)
130130
wasi_sdk_path = toolchain.wasi_sdk_path
131131
libraries << File.join(wasi_sdk_path, "share/wasi-sysroot/lib/wasm32-wasi", lib)
132132
end
133-
dl_openable_libs = []
133+
dl_openable_libs = [] #: Array[[string, Array[String]]]
134134
dl_openable_libs << [File.dirname(ruby_root), Dir.glob(File.join(ruby_root, "lib", "ruby", "**", "*.so"))]
135135
dl_openable_libs << [gem_home, Dir.glob(File.join(gem_home, "**", "*.so"))]
136136

0 commit comments

Comments
 (0)