nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f943225
)
misc: gccx does not accept more than 2 Vs (-vv), make sure we don't generate more...
author
Jean-Sebastien Gelinas
<calestar@gmail.com>
Fri, 28 Jan 2011 20:15:34 +0000
(15:15 -0500)
committer
Jean Privat
<jean@pryen.org>
Fri, 28 Jan 2011 20:15:29 +0000
(15:15 -0500)
A better way of handling this would be to make gccx smarter !
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
src/compiling/compiling_base.nit
patch
|
blob
|
history
diff --git
a/src/compiling/compiling_base.nit
b/src/compiling/compiling_base.nit
index
e1c5040
..
c922f05
100644
(file)
--- 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")