mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/extmk.rb (extmake): check if compile before showing message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88a374f59f
commit
8aa74a17ef
1 changed files with 5 additions and 10 deletions
13
ext/extmk.rb
13
ext/extmk.rb
|
@ -87,15 +87,6 @@ end
|
|||
def extmake(target)
|
||||
print "#{$message} #{target}\n"
|
||||
$stdout.flush
|
||||
if $force_static or $static_ext[target]
|
||||
$static = target
|
||||
else
|
||||
$static = false
|
||||
end
|
||||
|
||||
unless $ignore
|
||||
return true if $nodynamic and not $static
|
||||
end
|
||||
|
||||
FileUtils.mkpath target unless File.directory?(target)
|
||||
begin
|
||||
|
@ -439,7 +430,11 @@ Dir::chdir('ext')
|
|||
hdrdir = $hdrdir
|
||||
$hdrdir = ($top_srcdir = relative_from(srcdir, $topdir = "..")) + "/include"
|
||||
exts.each do |d|
|
||||
$static = $force_static ? $static_ext[target] : false
|
||||
|
||||
if $ignore or !$nodynamic or $static
|
||||
extmake(d) or abort
|
||||
end
|
||||
end
|
||||
$top_srcdir = srcdir
|
||||
$topdir = "."
|
||||
|
|
Loading…
Reference in a new issue