Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into ajpal-import-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpal committed Apr 3, 2024
2 parents 4b7ea86 + b20cc2d commit af21f1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions brilift/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,8 @@ pub fn jit_run(program: &Program, args: Vec<String>, dump_ir: bool) {
// Invoke the main function.
unsafe { trans.run(entry_id, &main_args) };
}

/// The C runtime library for Rust library users.
pub fn c_runtime() -> &'static str {
include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/rt.c"))
}

0 comments on commit af21f1c

Please sign in to comment.