Skip to content

Commit 3d27433

Browse files
authored
[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
1 parent e3bcb8d commit 3d27433

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/Utils/Library.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ endfunction ()
9393
# target_name: CMake target to modify
9494
# ~~~
9595
function (tvm_ffi_hide_static_linked_lib_symbols target_name)
96-
if (CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD|OpenBSD"
97-
AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang"
96+
if (CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD|OpenBSD" AND CMAKE_CXX_COMPILER_ID
97+
MATCHES "GNU|Clang"
9898
)
9999
target_link_options(${target_name} PRIVATE "-Wl,--exclude-libs,ALL")
100100
endif ()

0 commit comments

Comments
 (0)