summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-18 01:15:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-18 01:15:36 +0000
commitbc08e66607f883acd2b4da3eba32b54ab43426aa (patch)
tree67f6de87e9e27a1287fb72ce23dea7f0f28a9396
parentde4f844b85616e528b524453526d6125ba04c6ba (diff)
capi/spec_helper.rb: suppress logo
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): suppress logo of nmake.exe to stderr. we want to show compiler warnings only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--spec/rubyspec/optional/capi/spec_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/rubyspec/optional/capi/spec_helper.rb b/spec/rubyspec/optional/capi/spec_helper.rb
index 3d8cb296a6..5dcb6aceac 100644
--- a/spec/rubyspec/optional/capi/spec_helper.rb
+++ b/spec/rubyspec/optional/capi/spec_helper.rb
@@ -57,6 +57,10 @@ def compile_extension(name)
make = ENV['MAKE']
make ||= (RbConfig::CONFIG['host_os'].include?("mswin") ? "nmake" : "make")
+ if File.basename(make, ".*") == "nmake"
+ # suppress logo of nmake.exe to stderr
+ ENV["MAKEFLAGS"] = "l#{ENV["MAKEFLAGS"]}"
+ end
# Do not capture stderr as we want to show compiler warnings
output = IO.popen([make, "V=1", "DESTDIR=", close_others: false], &:read)