From 19bfd5ffb515968edd5ea9c1232f1d6a2d2a0107 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 19 Dec 2020 13:16:18 +0200 Subject: [PATCH] ci: fix building --- cmd/v/v.v | 5 ++++- vlib/v/checker/checker.v | 5 ++++- vlib/v/gen/cgen.v | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/cmd/v/v.v b/cmd/v/v.v index 16d05f8f25..c1322c6c79 100644 --- a/cmd/v/v.v +++ b/cmd/v/v.v @@ -37,7 +37,10 @@ const ( ) fn main() { - timers_should_print := $if time_v ? { true } $else { false } + mut timers_should_print := false + $if time_v ? { + timers_should_print = true + } mut timers := util.new_timers(timers_should_print) timers.start('v total') defer { diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index ca111bb3cb..317eb09c40 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -70,7 +70,10 @@ mut: } pub fn new_checker(table &table.Table, pref &pref.Preferences) Checker { - timers_should_print := $if time_checking ? { true } $else { false } + mut timers_should_print := false + $if time_checking ? { + timers_should_print = true + } return Checker{ table: table pref: pref diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 9808ff96a4..822f8bf548 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -152,7 +152,10 @@ pub fn cgen(files []ast.File, table &table.Table, pref &pref.Preferences) string '.') } } - timers_should_print := $if time_cgening ? { true } $else { false } + mut timers_should_print := false + $if time_cgening ? { + timers_should_print = true + } mut g := Gen{ out: strings.new_builder(1000) cheaders: strings.new_builder(8192)