# File lib/rubygems/ext/rake_builder.rb, line 12 12: def self.build(extension, directory, dest_path, results) 13: if File.basename(extension) =~ /mkrf_conf/ then 14: cmd = "#{Gem.ruby} #{File.basename extension}" 15: cmd << " #{Gem::Command.build_args.join " "}" unless Gem::Command.build_args.empty? 16: run cmd, results 17: end 18: 19: # Deal with possible spaces in the path, e.g. C:/Program Files 20: dest_path = '"' + dest_path + '"' if dest_path.include?(' ') 21: 22: cmd = ENV['rake'] || "#{Gem.ruby} -rubygems #{Gem.bin_path('rake')}" rescue Gem.default_exec_format % 'rake' 23: cmd += " RUBYARCHDIR=#{dest_path} RUBYLIBDIR=#{dest_path}" # ENV is frozen 24: 25: run cmd, results 26: 27: results 28: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.