Skip to content

Commit 97145ca

Browse files
committed
v.builder: support -d trace_type_symbols_after_checker
1 parent b653d65 commit 97145ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cmd/tools/vtest-all.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn get_all_commands() []Command {
9191
rmfile: 'examples/hello_world'
9292
}
9393
res << Command{
94-
line: '${vexe} -W -Wimpure-v run examples/hello_world.v'
94+
line: '${vexe} -W -Wimpure-v examples/hello_world.v'
9595
okmsg: 'V can compile hello world with the stricter `-W -Wimpure-v` mode .'
9696
rmfile: 'examples/hello_world'
9797
}

vlib/v/builder/builder.v

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ pub fn (mut b Builder) middle_stages() ! {
131131

132132
b.checker.check_files(b.parsed_files)
133133
util.timing_measure('CHECK')
134+
$if trace_type_symbols_after_checker ? {
135+
for t, s in b.table.type_symbols {
136+
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}')
137+
}
138+
}
134139
if b.pref.dump_defines != '' {
135140
b.dump_defines()
136141
}

0 commit comments

Comments
 (0)