From aa8915bdf6dd68067bd876a46eff3dc320c0b4c7 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 5 Oct 2021 23:57:14 +0300 Subject: [PATCH] v.gen.c: fix `[console]` handling for `sokol` programs on windows with parallel cgen --- vlib/v/gen/c/cgen.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 1c8bb5722d..e52e5f13a1 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -327,6 +327,9 @@ pub fn gen(files []&ast.File, table &ast.Table, pref &pref.Preferences) string { global_g.embedded_data.write(g.embedded_data) or { panic(err) } global_g.shared_types.write(g.shared_types) or { panic(err) } global_g.shared_functions.write(g.channel_definitions) or { panic(err) } + + global_g.force_main_console = global_g.force_main_console || g.force_main_console + // merge maps for k, v in g.shareds { global_g.shareds[k] = v