1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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