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
This commit is contained in:
Yusuke Endoh 2021-11-04 13:36:35 +09:00
Родитель 16331d9abb
Коммит 30886be9f4
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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] ||= "-"