1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Move timestamps directory for bundled gems

This commit is contained in:
Nobuyoshi Nakada 2022-07-12 23:59:33 +09:00
parent 3aee94fb91
commit dcbb94d5b9
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -537,8 +537,11 @@ extend Module.new {
return super unless @gemname
super(*args) do |conf|
conf.find do |s|
s.sub!(/^(TIMESTAMP_DIR *= *)\$\(extout\)/) {
"TARGET_TOPDIR = $(topdir)/.bundle\n" "#{$1}$(TARGET_TOPDIR)"
}
s.sub!(/^(TARGET_SO_DIR *= *)\$\(RUBYARCHDIR\)/) {
"TARGET_GEM_DIR = $(topdir)/.bundle/extensions/$(gem_platform)/$(ruby_version)/#{@gemname}\n"\
"TARGET_GEM_DIR = $(TARGET_TOPDIR)/extensions/$(gem_platform)/$(ruby_version)/#{@gemname}\n"\
"#{$1}$(TARGET_GEM_DIR)$(target_prefix)"
}
end