sudo mkdir -p "$CORE_DIR/lib"
echo "Copying libwasmer to $CORE_DIR/lib (first install)"
+ # sudo cp "$WASMER_LIBRARY_DIR/libiwasm.so" "$CORE_DIR/lib/libiwasm.so"
sudo cp "$WASMER_LIBRARY_DIR/libwasmer.so" "$CORE_DIR/lib/libwasmer.so"
sudo cp "$WASMER_LIBRARY_DIR/libwasmer.a" "$CORE_DIR/lib/libwasmer.a"
fi
#include <sys/wait.h>
#include <dlfcn.h>
#endif
-
-#ifndef WASMER_VERSION
- #error "Currently, building the Onyx compiler with built-in execution support requires the Wasmer library to be compiled and linked."
-#endif
+//
+// #ifndef WASMER_VERSION
+// #error "Currently, building the Onyx compiler with built-in execution support requires the Wasmer library to be compiled and linked."
+// #endif
static wasm_config_t* wasm_config;
static wasm_engine_t* wasm_engine;
bh_arr_new(bh_heap_allocator(), linkable_functions, 4);
onyx_lookup_and_load_custom_libraries(wasm_bytes);
+ // void wasm_runtime_init();
+ // wasm_runtime_init();
+
wasmer_features_t* features = NULL;
wasm_trap_t* run_trap = NULL;
wasm_module_imports(wasm_module, &module_imports);
wasm_imports = (wasm_extern_vec_t) WASM_EMPTY_VEC;
+ // wasm_imports.data = malloc(module_imports.size * 64);
+ // wasm_imports.size = module_imports.size;
wasm_extern_vec_new_uninitialized(&wasm_imports, module_imports.size); // @Free
fori (i, 0, (i32) module_imports.size) {