From 6b31ebe456d516bfa0d8ac63f96c199eea3ef598 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 23 Apr 2020 22:47:16 +0300 Subject: [PATCH] Revert "comptime: enable again skipping parsing of other platform branches" This reverts commit 0f4c5fb1c9a9dbe80ff5361f48ee6995524dc195. --- vlib/v/parser/comptime.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/parser/comptime.v b/vlib/v/parser/comptime.v index c519145d83..1fbdec064f 100644 --- a/vlib/v/parser/comptime.v +++ b/vlib/v/parser/comptime.v @@ -72,7 +72,7 @@ fn (mut p Parser) comp_if() ast.CompIf { // `$if os {` for a different target, skip everything inside // to avoid compilation errors (like including or calling WinAPI fns // on non-Windows systems) - if ((!is_not && os != p.pref.os) || (is_not && os == p.pref.os)) && !p.pref.output_cross_c { + if false && ((!is_not && os != p.pref.os) || (is_not && os == p.pref.os)) && !p.pref.output_cross_c { skip_os = true p.check(.lcbr) // p.warn('skipping $if $val os=$os p.pref.os=$p.pref.os')