summary refs log tree commit diff stats
path: root/drnim
diff options
context:
space:
mode:
authorc-blake <c-blake@users.noreply.github.com>2021-04-29 02:55:43 -0400
committerGitHub <noreply@github.com>2021-04-29 08:55:43 +0200
commit601c050fcb4cc3101265018eb1cc381c6cb9dab9 (patch)
treeb5b1c13bf19069801d606f15bdea56ab5d191385 /drnim
parent7637cff9cf677ad7e5952aed7670fe408eded418 (diff)
downloadNim-601c050fcb4cc3101265018eb1cc381c6cb9dab9.tar.gz
Implement https://forum.nim-lang.org/t/7848#50018 (#17874)
* Implement https://forum.nim-lang.org/t/7848#50018 with just the same
`SuccessX` hint category, build mode on a separate, final line, and
no change to how the mode is spelled for -d:release/-d:danger.

* Change to add a new BuildMode hint category and keep testament in sync
as per comment.

* Add "--hint:buildmode:off" to `defaultHintsOff`.

* Remove as requested.

* As requested for tests clean up.

* Address code review.

* Address code review.

* Mirror db456423116a9b19666f551f4d38aded3964c2e2
Diffstat (limited to 'drnim')
-rw-r--r--drnim/drnim.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/drnim/drnim.nim b/drnim/drnim.nim
index a591a8ef3..1eded533d 100644
--- a/drnim/drnim.nim
+++ b/drnim/drnim.nim
@@ -1210,19 +1210,19 @@ proc mainCommand(graph: ModuleGraph) =
       when declared(system.getMaxMem): formatSize(getMaxMem()) & " peakmem"
       else: formatSize(getTotalMem()) & " totmem"
     let loc = $conf.linesCompiled
-    let build = if isDefined(conf, "danger"): "Dangerous Release"
-                elif isDefined(conf, "release"): "Release"
-                else: "Debug"
+    let build = if isDefined(conf, "danger"): "Dangerous Release build"
+                elif isDefined(conf, "release"): "Release build"
+                else: "***SLOW, DEBUG BUILD***; -d:release makes code run faster."
     let sec = formatFloat(epochTime() - conf.lastCmdTime, ffDecimal, 3)
     let project = if conf.filenameOption == foAbs: $conf.projectFull else: $conf.projectName
     rawMessage(conf, hintSuccessX, [
       "loc", loc,
       "sec", sec,
       "mem", mem,
-      "build", build,
       "project", project,
       "output", ""
       ])
+    rawMessage(conf, hintBuildMode, build)
 
 proc processCmdLine(pass: TCmdLinePass, cmd: string; config: ConfigRef) =
   var p = parseopt.initOptParser(cmd)