v.builder: support -d trace_type_symbols_after_checker

This commit is contained in:
Delyan Angelov 2025-09-11 12:47:47 +03:00
parent b653d65676
commit 97145ca3a8
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 6 additions and 1 deletions

View file

@ -91,7 +91,7 @@ fn get_all_commands() []Command {
rmfile: 'examples/hello_world' rmfile: 'examples/hello_world'
} }
res << Command{ 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 .' okmsg: 'V can compile hello world with the stricter `-W -Wimpure-v` mode .'
rmfile: 'examples/hello_world' rmfile: 'examples/hello_world'
} }

View file

@ -131,6 +131,11 @@ pub fn (mut b Builder) middle_stages() ! {
b.checker.check_files(b.parsed_files) b.checker.check_files(b.parsed_files)
util.timing_measure('CHECK') 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 != '' { if b.pref.dump_defines != '' {
b.dump_defines() b.dump_defines()
} }