mirror of
https://github.com/vlang/v.git
synced 2025-09-13 06:22:26 +03:00
v.builder: support -d trace_type_symbols_after_checker
This commit is contained in:
parent
b653d65676
commit
97145ca3a8
2 changed files with 6 additions and 1 deletions
|
@ -91,7 +91,7 @@ fn get_all_commands() []Command {
|
|||
rmfile: 'examples/hello_world'
|
||||
}
|
||||
res << Command{
|
||||
line: '${vexe} -W -Wimpure-v run examples/hello_world.v'
|
||||
line: '${vexe} -W -Wimpure-v examples/hello_world.v'
|
||||
okmsg: 'V can compile hello world with the stricter `-W -Wimpure-v` mode .'
|
||||
rmfile: 'examples/hello_world'
|
||||
}
|
||||
|
|
|
@ -131,6 +131,11 @@ pub fn (mut b Builder) middle_stages() ! {
|
|||
|
||||
b.checker.check_files(b.parsed_files)
|
||||
util.timing_measure('CHECK')
|
||||
$if trace_type_symbols_after_checker ? {
|
||||
for t, s in b.table.type_symbols {
|
||||
println('> t: ${t:10} | s.mod: ${s.mod:-40} | s.name: ${'${s.name#[..30]}':-30} | s.is_builtin: ${s.is_builtin:6} | s.is_pub: ${s.is_pub}')
|
||||
}
|
||||
}
|
||||
if b.pref.dump_defines != '' {
|
||||
b.dump_defines()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue