From a14384e02ac294dc05be7d487f2953af982c96fa Mon Sep 17 00:00:00 2001 From: Akaash Parthasarathy Date: Fri, 24 Oct 2025 01:18:47 -0400 Subject: [PATCH] [Python][Android] Fix FFI compatibility issues for Android build --- python/mlc_llm/support/auto_target.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mlc_llm/support/auto_target.py b/python/mlc_llm/support/auto_target.py index 5d5294050c..5427291e70 100644 --- a/python/mlc_llm/support/auto_target.py +++ b/python/mlc_llm/support/auto_target.py @@ -198,7 +198,7 @@ def build(mod: IRModule, args: "CompileArgs", pipeline=None): fcompile=tar.tar, ) if args.debug_dump is not None: - source = ex.mod.imported_modules[0].imported_modules[0].get_source() + source = ex.mod.imports[0].imports[0].inspect_source() with open(args.debug_dump / "kernel.cl", "w", encoding="utf-8") as f: f.write(source) @@ -221,7 +221,7 @@ def build(mod: IRModule, args: "CompileArgs", pipeline=None): fcompile=ndk.create_shared, ) if args.debug_dump is not None: - source = ex.mod.imported_modules[0].imported_modules[0].get_source() + source = ex.mod.imports[0].imports[0].inspect_source() with open(args.debug_dump / "kernel.cl", "w", encoding="utf-8") as f: f.write(source)