mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
16331d9abb
commit
30886be9f4
Notes:
git
2021-11-05 09:35:13 +09:00
1 changed files with 4 additions and 0 deletions
|
@ -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] ||= "-"
|
||||
|
|
Loading…
Add table
Reference in a new issue