From f781d17900fd48e886955b40febfc63e3b4d6a6e Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Thu, 1 Jun 2023 15:11:54 +0200 Subject: [PATCH] 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. . --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a850c8b0d..ab708bd22 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