cmd/v: rewrite flags

This commit is contained in:
lutherwenxu 2020-03-07 01:53:29 +08:00 committed by GitHub
parent 522de0871a
commit aab31f4b35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 1087 additions and 464 deletions

View file

@ -176,7 +176,7 @@ fn (p mut Parser) print_error_context() {
// os.write_to_file('/var/tmp/lang.types', '')//pes(p.table.types))
os.write_file('fns.txt', p.table.debug_fns())
}
if p.pref.is_verbose || p.pref.is_debug {
if p.pref.verbosity.is_higher_or_equal(.level_three) {
println('pass=$p.pass fn=`$p.cur_fn.name`\n')
}
p.cgen.save()