Fix cmake on macOS to mark weak symbols with -U linker flag (#3978) (#3979)

Co-authored-by: Peter Debacker <pdback@imec.be>
This commit is contained in:
Peter Debacker 2023-02-23 23:27:29 +01:00 committed by GitHub
parent b4dd398af6
commit 191c71edea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,7 @@ Nathan Myers
Patrick Stewart Patrick Stewart
Paul Wright Paul Wright
Pawel Sagan Pawel Sagan
Peter Debacker
Peter Horvath Peter Horvath
Peter Monsson Peter Monsson
Philipp Wagner Philipp Wagner

View File

@ -78,6 +78,10 @@ if (NOT CMAKE_CXX_COMPILER_ID MATCHES MSVC)
endif() endif()
endif() endif()
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "AppleClang")
add_link_options(-Wl,-U,__Z15vl_time_stamp64v,-U,__Z13sc_time_stampv)
endif()
define_property(TARGET define_property(TARGET
PROPERTY VERILATOR_THREADED PROPERTY VERILATOR_THREADED
BRIEF_DOCS "Deprecated and has no effect (ignored)" BRIEF_DOCS "Deprecated and has no effect (ignored)"