From db456423116a9b19666f551f4d38aded3964c2e2 Mon Sep 17 00:00:00 2001 From: Charles Blake Date: Tue, 27 Apr 2021 18:24:50 -0400 Subject: [PATCH] Address code review. --- compiler/lineinfos.nim | 2 +- compiler/main.nim | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/lineinfos.nim b/compiler/lineinfos.nim index d8d0875279..c7057e7db4 100644 --- a/compiler/lineinfos.nim +++ b/compiler/lineinfos.nim @@ -144,7 +144,7 @@ const hintSuccess: "operation successful: $#", # keep in sync with `testament.isSuccess` hintSuccessX: "$loc lines; ${sec}s; $mem; proj: $project; out: $output", - hintBuildMode: "$build", + hintBuildMode: "$1", hintCC: "CC: $1", hintLineTooLong: "line too long", hintXDeclaredButNotUsed: "'$1' is declared but not used", diff --git a/compiler/main.nim b/compiler/main.nim index cc6095b035..e7ee021bce 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -409,9 +409,7 @@ proc mainCommand*(graph: ModuleGraph) = "project", project, "output", output, ]) - rawMessage(conf, hintBuildMode, [ - "build", build, - ]) + rawMessage(conf, hintBuildMode, build) when PrintRopeCacheStats: echo "rope cache stats: "