Skip to content

Commit 47ddeec

Browse files
committed
[WIP] Call start function even in jit mode
1 parent 4d6ac05 commit 47ddeec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main_shim.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ pub(crate) fn maybe_create_entry_wrapper(
100100

101101
let main_func_ref = m.declare_func_in_func(main_func_id, &mut bcx.func);
102102

103-
let result = if is_main_fn && ignore_lang_start_wrapper {
103+
let result = if is_main_fn && false
104+
/*&& ignore_lang_start_wrapper*/
105+
{
104106
// regular main fn, but ignoring #[lang = "start"] as we are running in the jit
105107
// FIXME set program arguments somehow
106108
let call_inst = bcx.ins().call(main_func_ref, &[]);

0 commit comments

Comments
 (0)