diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-12-10 01:49:30 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-12-10 01:49:30 +0200 |
commit | 7120491d055c04d838d9539fdf0c42003637ec2d (patch) | |
tree | 9c57ae03ef82c7bdb614a46117f621179c2d7203 /compiler | |
parent | 14dd3113a255eb59a76b6e1b3346fd9d5122038d (diff) | |
download | Nim-7120491d055c04d838d9539fdf0c42003637ec2d.tar.gz |
in successful compilations with verbosity:0, all output is suppressed (useful for combing with --run)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/main.nim | 4 |
1 files changed, 3 insertions, 1 deletions
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())]) |