提交 bc9c47e7 编写于 作者: M Megvii Engine Team

fix(mgb): use link.exe when compile windows

GitOrigin-RevId: 0b9073acce66bd8d5b6350a732e1b7d8b3605b3c
上级 668a8486
......@@ -99,10 +99,7 @@ if(MSVC OR WIN32)
# PE file linked by LLVM lld can not run at Windows XP env, so we force use link.exe
# which always locate in Microsoft Visual Studio/*/*/VC/Tools/MSVC/*/bin/*/*/link.exe
if(${MGE_ARCH} STREQUAL "i386")
set(CMAKE_LINKER "link.exe")
message(STATUS "Force use MSVS link when build for i386")
endif()
set(CMAKE_LINKER "link.exe")
if(MGE_DEPLOY_INFERENCE_ON_WINDOWS_XP OR MGE_DEPLOY_INFERENCE_ON_WINDOWS_XP_SP2)
if(NOT ${MGE_ARCH} STREQUAL "i386")
message(FATAL_ERROR "only support 32bit when build for Windows xp")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册