From ac4da20aa3e991a68ad4f49f6816c7652c3422fd Mon Sep 17 00:00:00 2001 From: drbrain Date: Thu, 21 Feb 2013 22:05:09 +0000 Subject: * lib/rubygems/installer.rb (build_extensions): Create extension install destination before building extension. Patch by Kenta Murata. [ruby-trunk - Bug #7897] * test/rubygems/test_gem_installer.rb: Test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/installer.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index 0865a6dd3d..fcfb2836dc 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -8,6 +8,7 @@ require 'rubygems/exceptions' require 'rubygems/package' require 'rubygems/ext' require 'rubygems/user_interaction' +require 'fileutils' ## # The installer installs the files contained in the .gem into the Gem.home. @@ -671,6 +672,8 @@ TEXT end begin + FileUtils.mkdir_p dest_path + Dir.chdir extension_dir do results = builder.build(extension, gem_dir, dest_path, results, @build_args) -- cgit v1.2.3