Patch for MIPS64 Architecture

This commit is contained in:
Zhang Wei
2020-02-16 01:49:04 +08:00
committed by wwmayer
parent 5f7856df15
commit 0bef3cdee4
4 changed files with 8 additions and 1 deletions

View File

@@ -13,7 +13,11 @@ macro(SetGlobalCompilerAndLinkerSettings)
message(STATUS "Platform is 32-bit")
endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
# check for mips64 platform
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips64")
message(STATUS "Architecture: mips64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mxgot")
endif()
if(MSVC)
# set default compiler settings