diff options
author | Jun Aruga <jaruga@redhat.com> | 2023-06-01 15:11:54 +0200 |
---|---|---|
committer | Jun Aruga <jaruga@redhat.com> | 2023-06-01 15:46:18 +0200 |
commit | f781d17900fd48e886955b40febfc63e3b4d6a6e (patch) | |
tree | 6c0fcd0e6841d5bf634fa335279d7be25d800afb | |
parent | 01f06fd26f6a5bdf31e0431909ec51eef43ac3f7 (diff) | |
download | ruby-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-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |