From bc9c47e77db73f43af35232701304f1f4837c47a Mon Sep 17 00:00:00 2001 From: Megvii Engine Team Date: Tue, 14 Sep 2021 14:03:43 +0800 Subject: [PATCH] fix(mgb): use link.exe when compile windows GitOrigin-RevId: 0b9073acce66bd8d5b6350a732e1b7d8b3605b3c --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e63420c..bbfb90b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") -- GitLab