mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
fix calling conv
This commit is contained in:
parent
01e0bef5cc
commit
5cb6cf5586
1 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,7 @@ fn file_handles() -> &'static Mutex<HashMap<u64, BufReader<File>>> {
|
|||
|
||||
extern "C" {
|
||||
#[link_name = "roc__mainForHost_1_exposed"]
|
||||
fn roc_main(args: &RocStr);
|
||||
fn roc_main(args: RocStr);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
@ -102,9 +102,8 @@ pub extern "C" fn rust_main() -> i32 {
|
|||
.nth(1)
|
||||
.expect("Please pass a .false file as a command-line argument to the false interpreter!");
|
||||
let arg = RocStr::from(arg.as_str());
|
||||
dbg!(arg.as_str());
|
||||
|
||||
unsafe { roc_main(&arg) };
|
||||
unsafe { roc_main(arg) };
|
||||
|
||||
// Exit code
|
||||
0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue