aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Aruga <jaruga@redhat.com>2023-06-01 15:11:54 +0200
committerJun Aruga <jaruga@redhat.com>2023-06-01 15:46:18 +0200
commitf781d17900fd48e886955b40febfc63e3b4d6a6e (patch)
tree6c0fcd0e6841d5bf634fa335279d7be25d800afb
parent01f06fd26f6a5bdf31e0431909ec51eef43ac3f7 (diff)
downloadruby-openssl-f781d17900fd48e886955b40febfc63e3b4d6a6e.tar.gz
Rakefile: Print the message with `Rake.rake_output_message`.
The `puts` method outputs the message to the `$stdout`, while the `sh` method outputs the message of the executed command to the `$stderr` by the `Rake.rake_output_message`. https://github.com/ruby/rake/blob/v13.0.6/lib/rake/file_utils.rb#L51 This caused the message `Compiler: ...` not printed before the actual compiling task like the CI result below. <https://github.com/ruby/openssl/actions/runs/5142797693/jobs/9256988158#step:6:141>.
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index a850c8b0..ab708bd2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -33,7 +33,7 @@ task :debug_compiler do
when 'gcc', 'clang'
sh "#{compiler} --version"
else
- puts "Compiler: #{RbConfig::CONFIG['CC']}"
+ Rake.rake_output_message "Compiler: #{RbConfig::CONFIG['CC']}"
end
end