Skip to content

Commit

Permalink
Move timestamps directory for bundled gems
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jul 12, 2022
1 parent 3aee94f commit dcbb94d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/extmk.rb
Expand Up @@ -537,8 +537,11 @@ def create_makefile(*args, &block)
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
Expand Down

0 comments on commit dcbb94d

Please sign in to comment.