Skip to content

Commit

Permalink
Update aot_main_wrapper template with new jit entrypoint arguments
Browse files Browse the repository at this point in the history
The jit entrypoint signature changed but this was not updated. Update to match.

PiperOrigin-RevId: 713698012
  • Loading branch information
allight authored and copybara-github committed Jan 9, 2025
1 parent 1fb9715 commit 67cff6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xls/jit/aot_main_cc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ void {{aot.extern_fn}}(const uint8_t* const* inputs,
uint8_t* const* outputs,
uint8_t* temp_buffer,
void* events,
void* unused,
void* unused, // instance_context
void* unused2, // jit_runtime
int64_t continuation_point);
{% if aot.write_result %}
int write(int fd, void* v, size_t s);
Expand Down Expand Up @@ -54,7 +55,7 @@ int main(int argc, char** argv) {
{{aot.extern_fn}}(
arg_buffers, result_buffers, temp_buffer,
/*interpreter_events=*/nullptr, /*callbacks=*/nullptr,
/*continuation_point=*/0);
/*runtime=*/nullptr, /*continuation_point=*/0);
{% if aot.write_result %}
write(1, result_buf, sizeof(result_buf));
{% endif %}
Expand Down

0 comments on commit 67cff6d

Please sign in to comment.