diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2019-07-28 08:03:01 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-31 07:47:02 +0800 |
commit | b73ad4999a1182fe5f06501f81cb58b44ae7e9c2 (patch) | |
tree | faf6a2990325bae0c707ea3592c68727a0b202b5 /lib/rubygems/ext | |
parent | 9dc0f39de556c384783fb112d0561c0df391dcc4 (diff) | |
download | ruby-b73ad4999a1182fe5f06501f81cb58b44ae7e9c2.tar.gz |
[rubygems/rubygems] Move 'build_for' to handle extension type before the extension is used
https://github.com/rubygems/rubygems/commit/2a32c5ef0a
Diffstat (limited to 'lib/rubygems/ext')
-rw-r--r-- | lib/rubygems/ext/builder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb index a3f17e25bf..ad9fa2d506 100644 --- a/lib/rubygems/ext/builder.rb +++ b/lib/rubygems/ext/builder.rb @@ -164,12 +164,12 @@ EOF # - @duckinator extension ||= '' # I wish I knew why this line existed + builder = builder_for(extension) + extension_dir = File.expand_path File.join(@gem_dir, File.dirname(extension)) lib_dir = File.join @spec.full_gem_path, @spec.raw_require_paths.first - builder = builder_for extension - begin FileUtils.mkdir_p dest_path |