Skip to content

Commit 39b7aff

Browse files
committed
Upstream MIPS 32bit-build-on-64bit patch from Debian Bug#838914
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.
1 parent 7eb4bd3 commit 39b7aff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/package_name.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ IF(NOT VERSION)
3030
SET(64BIT 1)
3131
ENDIF()
3232

33+
IF(NOT 64BIT AND CMAKE_SYSTEM_PROCESSOR MATCHES "^mips64")
34+
SET(DEFAULT_MACHINE "mips")
35+
ENDIF()
36+
3337
IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
3438
SET(NEED_DASH_BETWEEN_PLATFORM_AND_MACHINE 0)
3539
SET(DEFAULT_PLATFORM "win")

0 commit comments

Comments
 (0)