mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
comptime: enable again skipping parsing of other platform branches
This commit is contained in:
parent
7a132e5c79
commit
863fab0268
@ -72,7 +72,7 @@ fn (mut p Parser) comp_if() ast.CompIf {
|
|||||||
// `$if os {` for a different target, skip everything inside
|
// `$if os {` for a different target, skip everything inside
|
||||||
// to avoid compilation errors (like including <windows.h> or calling WinAPI fns
|
// to avoid compilation errors (like including <windows.h> or calling WinAPI fns
|
||||||
// on non-Windows systems)
|
// on non-Windows systems)
|
||||||
if false && ((!is_not && os != p.pref.os) || (is_not && os == p.pref.os)) && !p.pref.output_cross_c {
|
if ((!is_not && os != p.pref.os) || (is_not && os == p.pref.os)) && !p.pref.output_cross_c {
|
||||||
skip_os = true
|
skip_os = true
|
||||||
p.check(.lcbr)
|
p.check(.lcbr)
|
||||||
// p.warn('skipping $if $val os=$os p.pref.os=$p.pref.os')
|
// p.warn('skipping $if $val os=$os p.pref.os=$p.pref.os')
|
||||||
|
Loading…
Reference in New Issue
Block a user