mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: fix #include with @VROOT
This commit is contained in:
parent
9f620ab23b
commit
92d9569d5d
@ -2466,6 +2466,7 @@ fn (mut c Checker) hash_stmt(mut node ast.HashStmt) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
node.val = 'include $vroot'
|
node.val = 'include $vroot'
|
||||||
|
node.main = vroot
|
||||||
}
|
}
|
||||||
flag_no_comment := flag.all_before('//').trim_space()
|
flag_no_comment := flag.all_before('//').trim_space()
|
||||||
if !((flag_no_comment.starts_with('"') && flag_no_comment.ends_with('"')) ||
|
if !((flag_no_comment.starts_with('"') && flag_no_comment.ends_with('"')) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user