From 92d9569d5d9006dd787dd0cc7a4257caf47264cb Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 18 Oct 2020 22:31:15 +0300 Subject: [PATCH] checker: fix #include with @VROOT --- vlib/v/checker/checker.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index c79361695b..bba758f16f 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -2466,6 +2466,7 @@ fn (mut c Checker) hash_stmt(mut node ast.HashStmt) { return } node.val = 'include $vroot' + node.main = vroot } flag_no_comment := flag.all_before('//').trim_space() if !((flag_no_comment.starts_with('"') && flag_no_comment.ends_with('"')) ||