summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-02-04 16:40:41 +0900
committerNobuyoshi Nakada <[email protected]>2024-02-04 16:40:41 +0900
commit143a1be12808d138453b7c7d2c6941d24f23aaaa ()
tree01e3fdc30381f71a8e6896b7461bc639d43fca91 /ext/extmk.rb
parentc40b0d52be00f305fe14b4c060599afeded9b83e (diff)
Allow glob patterns in ext/Setup
-rwxr-xr-xext/extmk.rb13
1 files changed, 8 insertions, 5 deletions
@@ -472,12 +472,13 @@ if exts = ARGV.shift
$extension = [exts] if exts
if ext_prefix.start_with?('.')
@gemname = exts
- elsif exts
- $static_ext.delete_if {|t, *| !File.fnmatch(t, exts)}
end
end
-ext_prefix = "#{$top_srcdir}/#{ext_prefix || 'ext'}"
-exts = $static_ext.sort_by {|t, i| i}.collect {|t, i| t}
default_exclude_exts =
case
when $cygwin
@@ -626,7 +627,9 @@ $hdrdir = ($top_srcdir = relative_from(srcdir, $topdir = "..")) + "/include"
extso = []
fails = []
exts.each do |d|
- $static = $force_static ? true : $static_ext[d]
if !$nodynamic or $static
result = extmake(d, ext_prefix, !@gemname) or abort