v.util: always compile vfmt with `-d vfmt` to enable more efficient parsing

master
Delyan Angelov 2022-04-16 13:16:55 +03:00
parent 16ead4e63c
commit 8a57f7ed2d
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,9 @@ pub fn launch_tool(is_verbose bool, tool_name string, args []string) {
// .v line numbers, to ease diagnostic in #bugs and issues.
compilation_command += ' -g '
}
if tool_name == 'vfmt' {
compilation_command += ' -d vfmt '
}
compilation_command += os.quoted_path(tool_source)
if is_verbose {
println('Compiling $tool_name with: "$compilation_command"')