lib/rubygems/ext/builder.rb
##
# Builds extensions.  Valid types of extensions are extconf.rb files,
# configure scripts and rakefiles or mkrf_conf files.
Builds extensions.  Valid types of extensions are extconf.rb files,
configure scripts and rakefiles or mkrf_conf files.
Builds extensions . Valid types of extensions are extconf . rb files configure scripts and rakefiles or mkrf_conf files .
def build_extensions
    return if @spec.extensions.empty?
    if @build_args.empty?
      say "Building native extensions. This could take a while..."
    else
      say "Building native extensions with: '#{@build_args.join ' '}'"
      say "This could take a while..."
    end
    dest_path = @spec.extension_dir
    require "fileutils"
    FileUtils.rm_f @spec.gem_build_complete_path
    @spec.extensions.each do |extension|
      break if @ran_rake
      build_extension extension, dest_path
    end
    FileUtils.touch @spec.gem_build_complete_path
  end
def build_extensions return if @spec . extensions . empty? if @build_args . empty? say "Building native extensions. This could take a while..." else say "Building native extensions with: '#{@build_args.join ' '}'" say "This could take a while..." end dest_path = @spec . extension_dir require "fileutils" FileUtils . rm_f @spec . gem_build_complete_path @spec . extensions . each do | extension | break if @ran_rake build_extension extension , dest_path end FileUtils . touch @spec . gem_build_complete_path end
Builds extensions.
Builds extensions .