Browse Source

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

GitOrigin-RevId: 0b9073acce
release-1.6
Megvii Engine Team 3 years ago
parent
commit
bc9c47e77d
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      CMakeLists.txt

+ 1
- 4
CMakeLists.txt View File

@@ -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")


Loading…
Cancel
Save