Configure static extensions only if in charge
Get rid of races in parallel configuration when using the ext/Setup file.
This commit is contained in:
parent
f6239ce0fc
commit
c53aec73dd
@ -463,7 +463,11 @@ end unless $extstatic
|
|||||||
if ARGV[0]
|
if ARGV[0]
|
||||||
ext_prefix, exts = ARGV.shift.split('/', 2)
|
ext_prefix, exts = ARGV.shift.split('/', 2)
|
||||||
$extension = [exts] if exts
|
$extension = [exts] if exts
|
||||||
@gemname = exts if ext_prefix == 'gems'
|
if ext_prefix == 'gems'
|
||||||
|
@gemname = exts
|
||||||
|
elsif exts
|
||||||
|
$static_ext.delete_if {|t, *| !File.fnmatch(t, exts)}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
ext_prefix = "#{$top_srcdir}/#{ext_prefix || 'ext'}"
|
ext_prefix = "#{$top_srcdir}/#{ext_prefix || 'ext'}"
|
||||||
exts = $static_ext.sort_by {|t, i| i}.collect {|t, i| t}
|
exts = $static_ext.sort_by {|t, i| i}.collect {|t, i| t}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user