In Files

  • ruby-3.1.2/lib/rubygems/ext/configure_builder.rb

Methods

Files

Class/Module Index [+]

Quicksearch

Gem::Ext::ConfigureBuilder

Public Class Methods

build(extension, dest_path, results, args=[], lib_dir=nil, configure_dir=Dir.pwd) click to toggle source
 
               # File ruby-3.1.2/lib/rubygems/ext/configure_builder.rb, line 9
def self.build(extension, dest_path, results, args=[], lib_dir=nil, configure_dir=Dir.pwd)
  unless File.exist?(File.join(configure_dir, 'Makefile'))
    cmd = ["sh", "./configure", "--prefix=#{dest_path}", *args]

    run cmd, results, class_name, configure_dir
  end

  make dest_path, results, configure_dir

  results
end