PHP 8.2.31
Preview: configure_builder.rb Size: 809 B
//proc/thread-self/root/opt/alt/ruby40/share/rubygems/rubygems/ext/configure_builder.rb

# 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, configure_dir = Dir.pwd,
    target_rbconfig = Gem.target_rbconfig, n_jobs: nil)
    if target_rbconfig.path
      warn "--target-rbconfig is not yet supported for configure-based extensions. Ignoring"
    end

    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, target_rbconfig: target_rbconfig, n_jobs: n_jobs

    results
  end
end

Directory Contents

Dirs: 1 × Files: 7

Name Size Perms Modified Actions
- drwxr-xr-x 2026-06-09 07:03:28
Edit Download
7.61 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
179 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
10.23 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
3.51 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
809 B lrw-r--r-- 2026-05-21 12:15:20
Edit Download
2.79 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download
1.03 KB lrw-r--r-- 2026-05-21 12:15:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).