This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 833212db9e fix: skip dsymutil for static tvm_runtime on Apple 
platforms (#18744)
833212db9e is described below

commit 833212db9ef238926adcd2c9f0697e02b27fcb5c
Author: Ruihang Lai <[email protected]>
AuthorDate: Mon Feb 9 18:09:27 2026 -0500

    fix: skip dsymutil for static tvm_runtime on Apple platforms (#18744)
    
    dsymutil cannot process static libraries (.a files), causing the build
    to fail when building tvm_runtime as a static library for iOS. Only run
    dsymutil on tvm_runtime when building the shared library variant.
---
 CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa03e5f470..4af253f47a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -759,7 +759,10 @@ if(TVM_IS_DEBUG_BUILD)
 endif()
 
 tvm_ffi_add_apple_dsymutil(tvm)
-tvm_ffi_add_apple_dsymutil(tvm_runtime)
+# Only run dsymutil on shared libraries, not static libraries
+if(NOT BUILD_STATIC_RUNTIME)
+  tvm_ffi_add_apple_dsymutil(tvm_runtime)
+endif()
 
 if(BUILD_FOR_HEXAGON)
   # Wrap pthread_create to allow setting custom stack size.

Reply via email to