ci: fix building

pull/7416/head
Delyan Angelov 2020-12-19 13:16:18 +02:00
parent 2f1cc2bd08
commit 19bfd5ffb5
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 12 additions and 3 deletions

View File

@ -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 {

View File

@ -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

View File

@ -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)