From 0f55b5dcd1e8713a2f90a2ead1422bbbb45456a0 Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Gelinas Date: Fri, 28 Jan 2011 15:15:34 -0500 Subject: [PATCH] misc: gccx does not accept more than 2 Vs (-vv), make sure we don't generate more than two Vs A better way of handling this would be to make gccx smarter ! Signed-off-by: Jean-Sebastien Gelinas --- src/compiling/compiling_base.nit | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/compiling/compiling_base.nit b/src/compiling/compiling_base.nit index e1c5040..c922f05 100644 --- a/src/compiling/compiling_base.nit +++ b/src/compiling/compiling_base.nit @@ -86,9 +86,11 @@ class CProgram var verbose = "" var tc = program.tc - if tc.verbose_level > 0 then - verbose = "-" - for i in [1..tc.verbose_level] do verbose = verbose + "v" + if tc.verbose_level == 1 then + verbose = "-v" + else if tc.verbose_level >= 2 then + # We catch tc.verbose_level >= 2, since 3+ is not valid with gccx + verbose = "-vv" end f.write("#!/bin/sh\n") -- 1.7.9.5