nitc: use '> nul' on windows
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 16 Aug 2016 13:29:38 +0000 (09:29 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 10 Feb 2017 19:03:23 +0000 (14:03 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/compiler/abstract_compiler.nit

index 47f813d..7ad452b 100644 (file)
@@ -510,8 +510,10 @@ endif
                self.toolcontext.info(command, 2)
 
                var res
-               if self.toolcontext.verbose_level >= 3 or is_windows then
+               if self.toolcontext.verbose_level >= 3 then
                        res = sys.system("{command} 2>&1")
+               else if is_windows then
+                       res = sys.system("{command} 2>&1 >nul")
                else
                        res = sys.system("{command} 2>&1 >/dev/null")
                end