tsdk: Add target arch guard to __drkruntime_mem_alloc function. - wasm-runtime - A wasm runtime (HTM) git clone https://git.parazyd.org/wasm-runtime (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 5a6e11812efc0b8c7c85d0cee41541d343bea5e6 (DIR) parent 010774e2ec9bb841b108688c97dc7a68ccaf67ea (HTM) Author: parazyd <parazyd@dyne.org> Date: Wed, 9 Mar 2022 16:24:46 +0100 sdk: Add target arch guard to __drkruntime_mem_alloc function. Diffstat: M drk-sdk/src/entrypoint.rs | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- (DIR) diff --git a/drk-sdk/src/entrypoint.rs b/drk-sdk/src/entrypoint.rs t@@ -39,6 +39,7 @@ pub unsafe fn deserialize<'a>(input: *mut u8) -> &'a [u8] { /// Allocate a piece of memory in the wasm VM #[no_mangle] +#[cfg(target_arch = "wasm32")] pub extern "C" fn __drkruntime_mem_alloc(size: usize) -> *mut u8 { let align = std::mem::align_of::<usize>();