From cafe86ee6c0f83350434e5a453fd70a4e1f8db84 Mon Sep 17 00:00:00 2001 From: Will Leinweber Date: Fri, 31 Mar 2023 16:39:20 +0200 Subject: [PATCH] Apply review suggestions --- src/compiler/crystal/config.cr | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/compiler/crystal/config.cr b/src/compiler/crystal/config.cr index 5165eecfff99..32b307e80c27 100644 --- a/src/compiler/crystal/config.cr +++ b/src/compiler/crystal/config.cr @@ -17,13 +17,13 @@ module Crystal def self.description formatted_sha = "[#{build_commit}] " if build_commit formatted_date = "(#{date})" unless date.empty? - release_msg = "\nRelease mode: false" unless release_mode <<-DOC Crystal #{version} #{formatted_sha}#{formatted_date} LLVM: #{llvm_version} - Default target: #{self.host_target}#{release_msg} + Default target: #{self.host_target} + Release mode: #{self.release_mode} DOC end @@ -44,11 +44,7 @@ module Crystal end def self.release_mode - {% if flag?(:release) %} - true - {% else %} - false - {% end %} + {{ flag?(:release) }} end @@host_target : Crystal::Codegen::Target?