compiler: fix building v with tcc on linux

This commit is contained in:
Delyan Angelov 2019-09-01 14:12:37 +03:00 committed by Alexander Medvednikov
parent bfa6505636
commit 011afeb2ea

View file

@ -2737,7 +2737,7 @@ fn (p mut Parser) array_init() string {
new_arr += '_no_alloc' new_arr += '_no_alloc'
} }
if i == 0 { if i == 0 && p.pref.ccompiler != 'tcc' {
p.gen(' 0 })') p.gen(' 0 })')
} else { } else {
p.gen(' })') p.gen(' })')