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 3d27433  [CMake] Format static symbol helper condition (#628)
3d27433 is described below

commit 3d2743325eed70d0c206f8b7f548be87a18f86b6
Author: Tianqi Chen <[email protected]>
AuthorDate: Wed Jun 17 11:51:20 2026 -0400

    [CMake] Format static symbol helper condition (#628)
    
    Apply cmake-format to the condition introduced for hiding symbols from
    linked static libraries.
    
    Validation:
    - pre-commit run cmake-format --files cmake/Utils/Library.cmake
    - git diff --check
---
 cmake/Utils/Library.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/Utils/Library.cmake b/cmake/Utils/Library.cmake
index 09d11ee..5c06212 100644
--- a/cmake/Utils/Library.cmake
+++ b/cmake/Utils/Library.cmake
@@ -93,8 +93,8 @@ endfunction ()
 #   target_name: CMake target to modify
 # ~~~
 function (tvm_ffi_hide_static_linked_lib_symbols target_name)
-  if (CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD|OpenBSD"
-      AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang"
+  if (CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD|OpenBSD" AND 
CMAKE_CXX_COMPILER_ID
+                                                                           
MATCHES "GNU|Clang"
   )
     target_link_options(${target_name} PRIVATE "-Wl,--exclude-libs,ALL")
   endif ()

Reply via email to