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-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new 7cd2e50  [chore] Hide symbols by default for extension build (#278)
7cd2e50 is described below

commit 7cd2e500f5f17079ac6bdf7bf4f79681c885714a
Author: Tianqi Chen <[email protected]>
AuthorDate: Tue Nov 18 10:37:52 2025 -0500

    [chore] Hide symbols by default for extension build (#278)
    
    This PR hides the symbols by default for extension build. not strictly
    necessary good to avoid potential symbol conflict
---
 addons/torch_c_dlpack_ext/pyproject.toml               | 2 +-
 python/tvm_ffi/utils/_build_optional_torch_c_dlpack.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/addons/torch_c_dlpack_ext/pyproject.toml 
b/addons/torch_c_dlpack_ext/pyproject.toml
index 3b160b8..14a5996 100644
--- a/addons/torch_c_dlpack_ext/pyproject.toml
+++ b/addons/torch_c_dlpack_ext/pyproject.toml
@@ -17,7 +17,7 @@
 
 [project]
 name = "torch_c_dlpack_ext"
-version = "0.1.2"
+version = "0.1.3"
 requires-python = ">=3.9"
 description = "torch c dlpack ext"
 dependencies = ["torch"]
diff --git a/python/tvm_ffi/utils/_build_optional_torch_c_dlpack.py 
b/python/tvm_ffi/utils/_build_optional_torch_c_dlpack.py
index b18c40a..81762ef 100644
--- a/python/tvm_ffi/utils/_build_optional_torch_c_dlpack.py
+++ b/python/tvm_ffi/utils/_build_optional_torch_c_dlpack.py
@@ -599,7 +599,7 @@ def _run_build_on_linux_like(
     """Build the module directly by invoking compiler commands (non-Windows 
only)."""
     from tvm_ffi.libinfo import find_dlpack_include_path  # noqa: PLC0415
 
-    default_cflags = ["-std=c++17", "-fPIC", "-O3"]
+    default_cflags = ["-std=c++17", "-fPIC", "-O3", "-fvisibility=hidden"]
     # Platform-specific linker flags
     if IS_DARWIN:
         # macOS uses @loader_path instead of $ORIGIN

Reply via email to