From 53fde9c8121213528b6b8104d376d53ab48d5605 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 16 Apr 2022 13:16:55 +0300 Subject: [PATCH] v.util: always compile vfmt with `-d vfmt` to enable more efficient parsing --- vlib/v/util/util.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/util/util.v b/vlib/v/util/util.v index cb9e42be7f..915bc2adb0 100644 --- a/vlib/v/util/util.v +++ b/vlib/v/util/util.v @@ -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"')