[rubygems/rubygems] Skip to set DESTDIR option when it's not provided for mswin platform

https://github.com/rubygems/rubygems/commit/b93546c8d8
This commit is contained in:
Hiroshi SHIBATA 2021-11-04 13:59:41 +09:00 committed by git
parent 1506c8228b
commit 33d01b7344

View File

@ -30,7 +30,8 @@ class Gem::Ext::Builder
end
make_program = Shellwords.split(make_program)
destdir = 'DESTDIR=%s' % ENV['DESTDIR']
# The installation of the bundled gems is failed when DESTDIR is empty in mswin platform.
destdir = ENV['DESTDIR'] ? 'DESTDIR=%s' % ENV['DESTDIR'] : ''
['clean', '', 'install'].each do |target|
# Pass DESTDIR via command line to override what's in MAKEFLAGS