diff --git a/vlib/compiler/cflags.v b/vlib/compiler/cflags.v index cc0dae78c7..fe1fa9ba2e 100644 --- a/vlib/compiler/cflags.v +++ b/vlib/compiler/cflags.v @@ -106,9 +106,9 @@ fn (table mut Table) parse_cflag(cflag string, mod string) ?bool { index = i } } - if i := flag.index(',') { - if index == -1 || i < index { - index = i + if i2 := flag.index(',') { + if index == -1 || i2 < index { + index = i2 } } if index != -1 && flag[index] == ` ` && flag[index+1] == `-` {