summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-17 00:56:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-17 00:56:25 +0000
commit7d0066c542628b0d356de76617ac980292c1c583 (patch)
tree264d07c45d965d333494b59e2d9b16dac5b42307 /lib/mkmf.rb
parent375fd3152f21feeb3e3cf2b02449c3a495b349a9 (diff)
* lib/mkmf.rb (create_header): log the content of header.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 5b32553da1..a29e5bafbd 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -352,11 +352,11 @@ module MakeMakefile
end
end
- def log_src(src)
+ def log_src(src, heading="checked program was")
src = src.split(/^/)
fmt = "%#{src.size.to_s.size}d: %s"
Logging::message <<"EOM"
-checked program was:
+#{heading}:
/* begin */
EOM
src.each_with_index {|line, no| Logging::message fmt, no+1, line}
@@ -1557,7 +1557,8 @@ SRC
end
end
hdr << "#endif\n"
- hdr = hdr.join
+ hdr = hdr.join("")
+ log_src(hdr, "#{header} is")
unless (IO.read(header) == hdr rescue false)
open(header, "wb") do |hfile|
hfile.write(hdr)