summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/cgen.nim2
-rw-r--r--compiler/main.nim4
2 files changed, 4 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index ad9ade63c..b0c90de76 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -944,9 +944,9 @@ proc genMainProc(m: BModule) =
   const 
     CommonMainBody =
         "\tsystemDatInit();$n" &
+        "\tsystemInit();$n" &
         "$1" &
         "$2" &
-        "\tsystemInit();$n" &
         "$3" &
         "$4"
     PosixNimMain = 
diff --git a/compiler/main.nim b/compiler/main.nim
index 7cfc6d406..6a4ca496b 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -432,7 +432,9 @@ proc MainCommand* =
   else:
     rawMessage(errInvalidCommandX, command)
   
-  if msgs.gErrorCounter == 0 and gCmd notin {cmdInterpret, cmdRun, cmdDump}:
+  if (msgs.gErrorCounter == 0 and
+      gCmd notin {cmdInterpret, cmdRun, cmdDump} and
+      gVerbosity > 0):
     rawMessage(hintSuccessX, [$gLinesCompiled,
                formatFloat(epochTime() - gLastCmdTime, ffDecimal, 3),
                formatSize(getTotalMem())])