update zig and rust platforms to have correct roc_panic and roc_dbg

This commit is contained in:
Brendan Hansknecht 2023-11-29 21:49:34 -08:00
parent 1f14aa84a2
commit 3e66254b25
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
43 changed files with 475 additions and 201 deletions

View file

@ -289,6 +289,11 @@ mod dummy_platform_functions {
unimplemented!("It is not valid to call roc panic from within the compiler. Please use the \"platform\" feature if this is a platform.")
}
#[no_mangle]
pub unsafe extern "C" fn roc_dbg(_loc: *mut c_void, _msg: *mut c_void) {
unimplemented!("It is not valid to call roc dbg from within the compiler. Please use the \"platform\" feature if this is a platform.")
}
#[no_mangle]
pub fn roc_memset(_dst: *mut c_void, _c: i32, _n: usize) -> *mut c_void {
unimplemented!("It is not valid to call roc memset from within the compiler. Please use the \"platform\" feature if this is a platform.")