Skip to content

Commit 8a57f7e

Browse files
committed
v.util: always compile vfmt with -d vfmt to enable more efficient parsing
1 parent 16ead4e commit 8a57f7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vlib/v/util/util.v

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ pub fn launch_tool(is_verbose bool, tool_name string, args []string) {
172172
// .v line numbers, to ease diagnostic in #bugs and issues.
173173
compilation_command += ' -g '
174174
}
175+
if tool_name == 'vfmt' {
176+
compilation_command += ' -d vfmt '
177+
}
175178
compilation_command += os.quoted_path(tool_source)
176179
if is_verbose {
177180
println('Compiling $tool_name with: "$compilation_command"')

0 commit comments

Comments
 (0)