diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-12-20 16:48:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-12-22 22:10:26 +0900 |
commit | fca85845ab3ee12b9d1907a1335aa3f18bf322f7 (patch) | |
tree | 70936ae89ef7f4727aa478beca9ada68b0607903 | |
parent | e1ff13b1465cc548ff1f9416c22492e6177d59a3 (diff) |
Install modular GC libraries
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12428
-rwxr-xr-x | tool/rbinstall.rb | 9 |
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 |