From f4df6a3e74810c466ffea331c21247be5656c9e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 16 Aug 2016 09:29:38 -0400 Subject: [PATCH] nitc: use '> nul' on windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/compiler/abstract_compiler.nit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/abstract_compiler.nit b/src/compiler/abstract_compiler.nit index 47f813d..7ad452b 100644 --- a/src/compiler/abstract_compiler.nit +++ b/src/compiler/abstract_compiler.nit @@ -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 -- 1.7.9.5