1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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"')