diff --git a/brilift/src/lib.rs b/brilift/src/lib.rs index 9fded70fd..3c8af3751 100644 --- a/brilift/src/lib.rs +++ b/brilift/src/lib.rs @@ -71,3 +71,8 @@ pub fn jit_run(program: &Program, args: Vec, 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")) +}