From: Jean-Sebastien Gelinas Date: Fri, 28 Jan 2011 20:15:34 +0000 (-0500) Subject: misc: gccx does not accept more than 2 Vs (-vv), make sure we don't generate more... X-Git-Tag: v0.4~16^2 X-Git-Url: http://nitlanguage.org?hp=-c 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 --- 0f55b5dcd1e8713a2f90a2ead1422bbbb45456a0 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")