mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-11 22:01:25 -07:00
wasm: add foreign import and linking of wasm object files
This commit is contained in:
@@ -2029,7 +2029,11 @@ gb_internal void lb_set_wasm_procedure_import_attributes(LLVMValueRef value, Ent
|
||||
GB_ASSERT(foreign_library->LibraryName.paths.count == 1);
|
||||
|
||||
module_name = foreign_library->LibraryName.paths[0];
|
||||
|
||||
|
||||
if (string_ends_with(module_name, str_lit(".o"))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (string_starts_with(import_name, module_name)) {
|
||||
import_name = substring(import_name, module_name.len+WASM_MODULE_NAME_SEPARATOR.len, import_name.len);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user