Skip to content

Commit

Permalink
MDEV-26109: s390x detected as 32bit in mtr tests
Browse files Browse the repository at this point in the history
Currently @@version_compile_machine is used by mtr
to determine if the compiled executable is 32 or 64
bits.

We extend that logic by ensuring that if the DEFAUT_MACHINE
name doesn't have "64" in its string, "-64bits" is appended
to ensure these test pass.
  • Loading branch information
grooverdan committed Aug 24, 2021
1 parent 1f1d560 commit ece30d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/package_name.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ IF(NOT VERSION)
SET(DEFAULT_MACHINE "x86")
ENDIF()
ENDIF()


IF(NOT DEFAULT_MACHINE MATCHES "64" AND 64BIT)
SET(DEFAULT_MACHINE "${DEFAULT_MACHINE}-64bit")
ENDIF()

IF(NOT PLATFORM)
SET(PLATFORM ${DEFAULT_PLATFORM})
ENDIF()
Expand Down

0 comments on commit ece30d4

Please sign in to comment.