Skip to content

Commit

Permalink
Upstream MIPS 32bit-build-on-64bit patch from Debian Bug#838914
Browse files Browse the repository at this point in the history
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838914

Fixes CMake so that when building a 32-bit mips binary on a 64-bit
mips machine, the target is not set as 32-bit, which apparently
confused some tests in mroonga.
  • Loading branch information
knielsen committed Oct 21, 2016
1 parent 7eb4bd3 commit 39b7aff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/package_name.cmake
Expand Up @@ -30,6 +30,10 @@ IF(NOT VERSION)
SET(64BIT 1)
ENDIF()

IF(NOT 64BIT AND CMAKE_SYSTEM_PROCESSOR MATCHES "^mips64")
SET(DEFAULT_MACHINE "mips")
ENDIF()

IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(NEED_DASH_BETWEEN_PLATFORM_AND_MACHINE 0)
SET(DEFAULT_PLATFORM "win")
Expand Down

0 comments on commit 39b7aff

Please sign in to comment.