diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-07-02 22:14:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-02 22:14:54 +0100 |
| commit | 8b49549fd3cc7c7dc73dc79566b24c514392b4aa (patch) | |
| tree | 25c343fd898de212f7bd84862c409ce7ea9952c9 /src/llvm_backend_utility.cpp | |
| parent | 0ceae51223d58534343c3d428d611a4bd6123779 (diff) | |
| parent | 5399093050f192c13ea494e69455be8e1052e06c (diff) | |
Merge pull request #3859 from laytan/wasm-stbtt-object-linking-preopens
wasm: support `vendor:stb/truetype` and `vendor:fontstash`
Diffstat (limited to 'src/llvm_backend_utility.cpp')
| -rw-r--r-- | src/llvm_backend_utility.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/llvm_backend_utility.cpp b/src/llvm_backend_utility.cpp index 98ed0c57e..1165476be 100644 --- a/src/llvm_backend_utility.cpp +++ b/src/llvm_backend_utility.cpp @@ -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); } |