From 7e0a9fb83afe42c740c8e0f77089df731b4c3469 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 16 Dec 2019 17:55:10 +0200 Subject: [PATCH] compiler: fix regression for -d option flag --- vlib/compiler/compiler_options.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/compiler_options.v b/vlib/compiler/compiler_options.v index 51b335703f..58c64481c2 100644 --- a/vlib/compiler/compiler_options.v +++ b/vlib/compiler/compiler_options.v @@ -14,7 +14,7 @@ pub fn get_v_options_and_main_command(args []string) ([]string,string) { continue }else{ options << a - if a in ['-o', '-os', '-cc', '-cflags'] { i++ } + if a in ['-o', '-os', '-cc', '-cflags', '-d'] { i++ } } } // potential_commands[0] is always the executable itself, so ignore it