summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtool/rbinstall.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index d6feac2cb8..ebd76dc2c9 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -1187,6 +1187,15 @@ install?(:ext, :comm, :gem, :'bundled-gems') do
end
end
+install?('modular-gc') do
+ if modular_gc_dir = CONFIG['modular_gc_dir'] and !modular_gc_dir.empty?
+ dlext = CONFIG['DLEXT', true]
+ modular_gc_dir = File.expand_path(modular_gc_dir, CONFIG['prefix'])
+ prepare "modular GC library", modular_gc_dir
+ install Dir.glob("gc/*/librubygc.*.#{dlext}"), modular_gc_dir
+ end
+end
+
parse_args()
include FileUtils