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

Co-authored-by: Peter Debacker <[email protected]>
This commit is contained in:
Peter Debacker
2023-02-23 17:27:29 -05:00
committed by GitHub
co-authored by Peter Debacker
parent b4dd398af6
commit 191c71edea
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -105,6 +105,7 @@ Nathan Myers
Patrick Stewart
Paul Wright
Pawel Sagan
Peter Debacker
Peter Horvath
Peter Monsson
Philipp Wagner
+4
View File
@@ -78,6 +78,10 @@ if (NOT CMAKE_CXX_COMPILER_ID MATCHES MSVC)
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
PROPERTY VERILATOR_THREADED
BRIEF_DOCS "Deprecated and has no effect (ignored)"