1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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'
}
if i == 0 {
if i == 0 && p.pref.ccompiler != 'tcc' {
p.gen(' 0 })')
} else {
p.gen(' })')