summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-03 11:28:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-03 11:28:10 +0000
commitee2b218293c1749e4b857c4a018050c0315d0456 (patch)
tree7bfd481d1b1ea4ef5719c45bbd0f76c759a47f88 /ext/extmk.rb
parent1d339ff212747d5bcd4fcbf65750f078c64c7367 (diff)
* ext/extmk.rb (extmake): Invoke Logging::log_close in a ensure
clause. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 737e998..1a318b3 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -230,10 +230,8 @@ def extmake(target)
Logging::message(mess) if Logging.log_opened?
print(mess)
$stdout.flush
- Logging::log_close
return true
end
- Logging::log_close
args = sysquote($mflags)
unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
args += [sysquote("DESTDIR=" + relative_from($destdir, "../"+prefix))]
@@ -265,6 +263,7 @@ def extmake(target)
$extpath |= $LIBPATH
end
ensure
+ Logging::log_close
unless $ignore
RbConfig.module_eval {
remove_const(:CONFIG)