summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2021-12-03 22:45:04 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-12-16 16:17:41 +0900
commitf1a02ebfb9362c6d925b700ad4d24ddb3f81abd3 (patch)
treefd3bd173163b0831d2cc61ad2f40dfd3914b055d /tool/rbinstall.rb
parent332d1e52e62735ff16e5fb9207ce86695369555d (diff)
downloadruby-f1a02ebfb9362c6d925b700ad4d24ddb3f81abd3.tar.gz
Install gemspec even though no .rb and no .so
When building with --with-static-linked-ext, some exts without rb file doesn't produce neither .so or .rb under .ext/common. Therefore, change rbinstall.rb to install gemspec even if there is no .so or .rb for that case.
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 852ff8f698..c8557a0e48 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -966,7 +966,6 @@ def install_default_gem(dir, srcdir, bindir)
spec = load_gemspec(src)
file_collector = RbInstall::Specs::FileCollector.new(src)
files = file_collector.collect
- next if files.empty?
spec.files = files
spec
}