mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix #861 - Add extra check on missing main
This commit is contained in:
@@ -14850,8 +14850,10 @@ lbProcedure *lb_create_main_procedure(lbModule *m, lbProcedure *startup_runtime)
|
|||||||
args[0] = lb_addr_load(p, all_tests_slice);
|
args[0] = lb_addr_load(p, all_tests_slice);
|
||||||
lb_emit_call(p, runner, args);
|
lb_emit_call(p, runner, args);
|
||||||
} else {
|
} else {
|
||||||
lbValue entry_point = lb_find_procedure_value_from_entity(m, m->info->entry_point);
|
if (m->info->entry_point != nullptr) {
|
||||||
lb_emit_call(p, entry_point, {});
|
lbValue entry_point = lb_find_procedure_value_from_entity(m, m->info->entry_point);
|
||||||
|
lb_emit_call(p, entry_point, {});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVMBuildRet(p->builder, LLVMConstInt(lb_type(m, t_i32), 0, false));
|
LLVMBuildRet(p->builder, LLVMConstInt(lb_type(m, t_i32), 0, false));
|
||||||
|
|||||||
Reference in New Issue
Block a user