Skip to content

Commit

Permalink
Update steep
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Dec 17, 2024
1 parent f3d79dd commit b5d5d05
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ group :check do
# Use the latest version of webrick for URI change in Ruby 3.4
gem "webrick", "~> 1.8.2"
gem "syntax_tree", "~> 3.5"
gem "steep"
gem "steep", "~> 1.9"
end
2 changes: 1 addition & 1 deletion lib/ruby_wasm/build/product/crossruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def feature_name(crossruby)
end

def make_args(crossruby)
make_args = []
make_args = [] #: Array[String]
make_args << "CC=#{@toolchain.cc}"
make_args << "CXX=#{@toolchain.cc}"
make_args << "LD=#{@toolchain.ld}"
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby_wasm/build/product/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def initialize(target, toolchain)
@toolchain = toolchain
end
def system_triplet_args
args = []
args = [] #: Array[String]
case @target.triple
when /^wasm32-unknown-wasi/
args.concat(%W[--host wasm32-wasi])
Expand All @@ -24,7 +24,7 @@ def system_triplet_args
end

def tools_args
args = []
args = [] #: Array[String]
args << "CC=#{@toolchain.cc}"
args << "CXX=#{@toolchain.cxx}"
args << "LD=#{@toolchain.ld}"
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_wasm/build/toolchain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def self.check_executable(command)

%i[cc cxx ranlib ld ar].each do |name|
define_method(name) do
@tools_cache ||= {}
@tools_cache ||= {} #: Hash[String, String]
@tools_cache[name] ||= find_tool(name)
@tools_cache[name]
end
Expand Down
4 changes: 2 additions & 2 deletions lib/ruby_wasm/packager/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def link_gem_exts(executor, ruby_root, gem_home, module_bytes)
end

def _link_gem_exts(executor, build, ruby_root, gem_home, module_bytes)
libraries = []
libraries = [] #: Array[String]

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

Expand Down

0 comments on commit b5d5d05

Please sign in to comment.