v.gen.c: fix `[console]` handling for `sokol` programs on windows with parallel cgen

pull/12077/head
Delyan Angelov 2021-10-05 23:57:14 +03:00
parent 443fa50244
commit aa8915bdf6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 0 deletions

View File

@ -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