summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-03 10:00:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-03 10:00:49 +0000
commit1d339ff212747d5bcd4fcbf65750f078c64c7367 (patch)
tree29d9bd6c991ef4b47c2ad78f42f4c648393eccf1 /lib/mkmf.rb
parent9089f57207b2f6ff9a48bc50b1ea67c92b17895e (diff)
* ext/extmk.rb (extmake): Use Logging.open to switch stdout and
stderr. Delay Logging::log_close until the failure message is written. Write the failure message only if log file is opened. * lib/mkmf.rb (Logging.log_opened?): New method. [ruby-dev:47215] [Bug #8209] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 90d28ab449..a02c3cd039 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -310,6 +310,10 @@ module MakeMakefile
@log.sync = true
end
+ def self::log_opened?
+ @log and not @log.closed?
+ end
+
def self::open
log_open
$stderr.reopen(@log)