Install modular GC libraries

This commit is contained in:
Nobuyoshi Nakada 2024-12-20 16:48:09 +09:00
parent e1ff13b146
commit fca85845ab
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2024-12-22 13:42:56 +00:00

View File

@ -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