mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[rubygems/rubygems] Don't call #build_extensions
at all if there are no extensions
5ecc0e0b31
This commit is contained in:
parent
d20886dd22
commit
14f52cfce5
1 changed files with 4 additions and 6 deletions
|
@ -25,7 +25,7 @@ module Bundler
|
|||
|
||||
extract_files
|
||||
|
||||
build_extensions
|
||||
build_extensions if spec.extensions.any?
|
||||
write_build_info_file
|
||||
run_post_build_hooks
|
||||
|
||||
|
@ -81,11 +81,9 @@ module Bundler
|
|||
else
|
||||
require "shellwords" # compensate missing require in rubygems before version 3.2.25
|
||||
super
|
||||
if extension_dir.directory? # not made for gems without extensions
|
||||
SharedHelpers.filesystem_access(extension_cache_path.parent, &:mkpath)
|
||||
SharedHelpers.filesystem_access(extension_cache_path) do
|
||||
FileUtils.cp_r extension_dir, extension_cache_path
|
||||
end
|
||||
SharedHelpers.filesystem_access(extension_cache_path.parent, &:mkpath)
|
||||
SharedHelpers.filesystem_access(extension_cache_path) do
|
||||
FileUtils.cp_r extension_dir, extension_cache_path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue