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

[rubygems/rubygems] Move 'build_for' to handle extension type before the extension is used

https://github.com/rubygems/rubygems/commit/2a32c5ef0a
This commit is contained in:
bronzdoc 2019-07-28 08:03:01 -06:00 committed by Hiroshi SHIBATA
parent 9dc0f39de5
commit b73ad4999a
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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