From 2b3204603a68f0beefa0ffdc9adadfb6c3236157 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 14 Apr 2020 18:02:55 +0300 Subject: [PATCH] parser: add an $if tinyc{} wrapper for the tcc_stack_bug variable --- vlib/v/parser/parser.v | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index fc977211c0..b4b2f07dab 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -1348,9 +1348,12 @@ fn (p mut Parser) array_init() ast.ArrayInit { } line_nr := p.tok.line_nr - // NB: do not remove the next line without testing - // v selfcompilation with tcc first - tcc_stack_bug := 12345 + $if tinyc { + // NB: do not remove the next line without testing + // v selfcompilation with tcc first + tcc_stack_bug := 12345 + } + last_pos = p.tok.position() p.check(.rsbr)