Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 8c7b90e

Browse files
authored
Merge pull request #11 from runrevmark/fix-win-release
[[ Windows ]] Fix linking of engine lcb modules in Windows release mode
2 parents 9241f28 + 44fc7d3 commit 8c7b90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchain/lc-compile/src/emit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ EmitEndModuleOutputC (NameRef p_module_name,
482482
if (0 > fprintf(t_file, "static __builtin_module_info __%s_module_info = {\n 0,\n 0,\n %s_module_data,\n sizeof(%s_module_data),\n %s_Initialize,\n %s_Finalize };\n", t_modified_name, t_modified_name, t_modified_name, t_modified_name, t_modified_name))
483483
goto error_cleanup;
484484

485-
if (0 > fprintf(t_file, "static __builtin_module_loader __%s_loader(&__%s_module_info);\n\n", t_modified_name, t_modified_name))
485+
if (0 > fprintf(t_file, "__builtin_module_loader __%s_loader(&__%s_module_info);\n\n", t_modified_name, t_modified_name))
486486
goto error_cleanup;
487487

488488
EmittedModule *t_mod;

0 commit comments

Comments
 (0)