diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-04 13:36:35 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-05 09:34:46 +0900 |
commit | 30886be9f4f42626b94b079885e826335594b8dd (patch) | |
tree | 065509c6325bfaec21663ab9d9bb6d16a99ad2a0 /tool | |
parent | 16331d9abb23aa2c3840d69a11e71881e8954b08 (diff) | |
download | ruby-30886be9f4f42626b94b079885e826335594b8dd.tar.gz |
Skip bundled gem with an extension library under with-static-linked-ext
.. mainly to fix emscripten CI
http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-wasm64_emscripten/log/20211104T024621Z.fail.html.gz
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 170a1707d0..0f86850db7 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -1039,6 +1039,10 @@ install?(:ext, :comm, :gem, :'bundled-gems') do end next unless spec.platform == Gem::Platform::RUBY next unless spec.full_name == gem_name + if !spec.extensions.empty? && CONFIG["EXTSTATIC"] == "static" + puts "skip installation of #{spec.name} #{spec.version}; bundled gem with an extension library is not supported on --with-static-linked-ext" + next + end spec.extension_dir = "#{extensions_dir}/#{spec.full_name}" if File.directory?(ext = "#{gem_ext_dir}/#{spec.full_name}") spec.extensions[0] ||= "-" |