[前][次][番号順一覧][スレッド一覧]

ruby-changes:70755

From: Yuta <ko1@a...>
Date: Thu, 6 Jan 2022 18:14:48 +0900 (JST)
Subject: [ruby-changes:70755] e554b17c60 (master): tool/rbinstall.rb: instal ruby.wasm produced by Emscripten

https://git.ruby-lang.org/ruby.git/commit/?id=e554b17c60

From e554b17c60b31c79c91cc6fd480c692b04ca9e3f Mon Sep 17 00:00:00 2001
From: Yuta Saito <kateinoigakukun@g...>
Date: Wed, 29 Dec 2021 06:33:03 +0000
Subject: tool/rbinstall.rb: instal ruby.wasm produced by Emscripten

---
 tool/rbinstall.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 0b1195e3603..9d9b672be47 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -376,6 +376,11 @@ install?(:local, :arch, :bin, :'bin-arch') do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L376
   if rubyw_install_name and !rubyw_install_name.empty?
     install rubyw_install_name+exeext, bindir, :mode => $prog_mode, :strip => $strip
   end
+  # emcc produces ruby and ruby.wasm, the first is a JavaScript file of runtime support
+  # to load and execute the second .wasm file. Both are required to execute ruby
+  if RUBY_PLATFORM =~ /emscripten/ and File.exist? ruby_install_name+".wasm"
+    install ruby_install_name+".wasm", bindir, :mode => $prog_mode, :strip => $strip
+  end
   if File.exist? goruby_install_name+exeext
     install goruby_install_name+exeext, bindir, :mode => $prog_mode, :strip => $strip
   end
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]