Fix loader fail to lookup registered native symbol issue (#529)

This commit is contained in:
Xu Jun
2021-02-19 11:14:40 +08:00
committed by GitHub
parent 3849ece496
commit 370cc83fbd
4 changed files with 322 additions and 360 deletions

View File

@ -539,12 +539,6 @@ wasm_runtime_destroy_loading_module_list()
}
#endif /* WASM_ENABLE_MULTI_MODULE */
bool
wasm_runtime_is_host_module(const char *module_name)
{
return strlen(module_name) == 0;
}
bool
wasm_runtime_is_built_in_module(const char *module_name)
{
@ -552,7 +546,7 @@ wasm_runtime_is_built_in_module(const char *module_name)
|| !strcmp("wasi_unstable", module_name)
|| !strcmp("wasi_snapshot_preview1", module_name)
|| !strcmp("spectest", module_name)
);
|| !strcmp("", module_name));
}
#if WASM_ENABLE_THREAD_MGR != 0