Skip to content

Commit

Permalink
[microTVM] Fix MacOS build with USE_MICRO=ON (apache#13711)
Browse files Browse the repository at this point in the history
fix MacOS build with USE_MICRO=ON
  • Loading branch information
alanmacd authored and fzi-peccia committed Mar 27, 2023
1 parent 50d2154 commit f2bbb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/StandaloneCrt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ else()
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
list(APPEND TVM_RUNTIME_LINKER_LIBS -Wl,--whole-archive ${TVM_CRT_LINKER_LIB} -Wl,--no-whole-archive)
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES ".*Clang")
list(APPEND TVM_RUNTIME_LINKER_LIBS -Wl,-force_load $<TARGET_PROPERTY:${TVM_CRT_LINKER_LIB},IMPORTED_LOCATION>)
list(APPEND TVM_RUNTIME_LINKER_LIBS -Wl,-force_load ${TVM_CRT_LINKER_LIB})
else()
list(APPEND TVM_RUNTIME_LINKER_LIBS ${TVM_CRT_LINKER_LIB})
endif()
Expand Down

0 comments on commit f2bbb7e

Please sign in to comment.