Skip to content

Commit 3d42929

Browse files
authored
[iOS][Android] Fix symbol name for library module after refactor (#3262)
This PR fixes a symbol name mismatch caused by an upstream refactor in apache/tvm#18042.
1 parent f08429a commit 3d42929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/mlc_llm/interface/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _get_model_libs(lib_path: Path) -> List[str]:
197197
"""Get the model lib prefixes in the given static lib path."""
198198
global_symbol_map = cc.get_global_symbol_section_map(lib_path)
199199
libs = []
200-
suffix = "___tvm_dev_mblob"
200+
suffix = "___tvm_ffi_library_bin"
201201
for name, _ in global_symbol_map.items():
202202
if name.endswith(suffix):
203203
model_lib = name[: -len(suffix)]
@@ -231,7 +231,7 @@ def _get_model_libs(lib_path: Path) -> List[str]:
231231
f"model_lib_path_for_prepare_libs={model_lib_path_for_prepare_libs}"
232232
)
233233

234-
model_prefix_pattern = model_lib.replace("-", "_") + "___tvm_dev_mblob"
234+
model_prefix_pattern = model_lib.replace("-", "_") + "___tvm_ffi_library_bin"
235235
if (
236236
model_prefix_pattern not in global_symbol_map
237237
and "_" + model_prefix_pattern not in global_symbol_map

0 commit comments

Comments
 (0)