summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index c808f10e32..338b7c5242 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -171,6 +171,7 @@ module Logging
@orgerr = $stderr.dup
@orgout = $stdout.dup
@postpone = 0
+ @quiet = $extmk
def self::open
@log ||= File::open(@logfile, 'w')
@@ -214,6 +215,10 @@ module Logging
end
end
end
+
+ class << self
+ attr_accessor :quiet
+ end
end
def xsystem command
@@ -533,7 +538,7 @@ def append_library(libs, lib)
end
def message(*s)
- unless $extmk and not $VERBOSE
+ unless Logging.quiet and not $VERBOSE
printf(*s)
$stdout.flush
end