mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
9694bb8cac
* test/rubygems*: ditto. * common.mk (prelude): Updated for RubyGems 2.0 source rearrangement. * tool/change_maker.rb: Allow invalid UTF-8 characters in source files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24 lines
493 B
Ruby
24 lines
493 B
Ruby
#--
|
|
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
|
|
# All rights reserved.
|
|
# See LICENSE.txt for permissions.
|
|
#++
|
|
|
|
require 'rubygems/ext/builder'
|
|
require 'rubygems/command'
|
|
|
|
class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
|
|
|
|
def self.build(extension, directory, dest_path, results, args=[])
|
|
cmd = "#{Gem.ruby} #{File.basename extension}"
|
|
cmd << " #{args.join ' '}" unless args.empty?
|
|
|
|
run cmd, results
|
|
|
|
make dest_path, results
|
|
|
|
results
|
|
end
|
|
|
|
end
|
|
|