Fix undefined weak link for Apple GCC etc (#6348)

This commit is contained in:
Congcong Cai 2025-08-31 02:25:20 +08:00 committed by GitHub
parent b0044da8a7
commit ca2c40347b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ Chris Randall
Christopher Taylor
Chuxuan Wang
Chykon
Congcong Cai
Conor McCullough
Dan Petrisko
Danny Oler

View File

@ -119,7 +119,7 @@ if(NOT CMAKE_CXX_COMPILER_ID MATCHES MSVC)
endif()
endif()
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang")
if(Apple)
add_link_options(-Wl,-U,__Z15vl_time_stamp64v,-U,__Z13sc_time_stampv)
endif()