From b5d5d051a9c76a8373189a7b61dd5dcc45f075d4 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Tue, 17 Dec 2024 09:24:48 +0000 Subject: [PATCH] Update steep --- Gemfile | 2 +- lib/ruby_wasm/build/product/crossruby.rb | 2 +- lib/ruby_wasm/build/product/product.rb | 4 ++-- lib/ruby_wasm/build/toolchain.rb | 2 +- lib/ruby_wasm/packager/core.rb | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index 3a8ffe780d..1d991f81cf 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/lib/ruby_wasm/build/product/crossruby.rb b/lib/ruby_wasm/build/product/crossruby.rb index 73ec915507..c1a4d135aa 100644 --- a/lib/ruby_wasm/build/product/crossruby.rb +++ b/lib/ruby_wasm/build/product/crossruby.rb @@ -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}" diff --git a/lib/ruby_wasm/build/product/product.rb b/lib/ruby_wasm/build/product/product.rb index 8a443da397..726517c3a5 100644 --- a/lib/ruby_wasm/build/product/product.rb +++ b/lib/ruby_wasm/build/product/product.rb @@ -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]) @@ -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}" diff --git a/lib/ruby_wasm/build/toolchain.rb b/lib/ruby_wasm/build/toolchain.rb index 4f4d8d393b..090011c9bd 100644 --- a/lib/ruby_wasm/build/toolchain.rb +++ b/lib/ruby_wasm/build/toolchain.rb @@ -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 diff --git a/lib/ruby_wasm/packager/core.rb b/lib/ruby_wasm/packager/core.rb index 9383341faf..0054633de8 100644 --- a/lib/ruby_wasm/packager/core.rb +++ b/lib/ruby_wasm/packager/core.rb @@ -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 = [ @@ -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"))]