Sha256: 4f56b6ba440834ff8c2ccefcbe8b4dece31adf10e91c76ae6d06442641738dc1

Contents?: true

Size: 514 Bytes

Versions: 21

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++

class Gem::Ext::ConfigureBuilder < Gem::Ext::Builder

  def self.build(extension, dest_path, results, args=[], lib_dir=nil)
    unless File.exist?('Makefile')
      cmd = "sh ./configure --prefix=#{dest_path}"
      cmd << " #{args.join ' '}" unless args.empty?

      run cmd, results
    end

    make dest_path, results

    results
  end

end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rubygems-update-3.0.0 lib/rubygems/ext/configure_builder.rb