2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

Fix detection of MIPS32 (#655)

_ABI64 and _ABIO32 are always defined on every
Linux MIPS system, at least if it's glibc-based:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/mips/sgidefs.h;h=c9e00c6da53b1a13d83b4056f01ef5c30efe76ab

The correct way to use them is to compare them
against _MIPS_SIM symbol provided by the compiler.

With this change, engine correctly detects 32-bit
MIPS systems.

Signed-off-by: Ivan A. Melnikov <iv@altlinux.org>
This commit is contained in:
Ivan Melnikov
2020-09-11 17:58:03 +04:00
committed by GitHub
parent 7abf398446
commit b97746e29c

View File

@@ -412,9 +412,9 @@
#endif
#ifdef __mips__
#if defined(_ABI64)
#if _MIPS_SIM == _MIPS_SIM_ABI64
#define OSPLAT "OSPLAT=MIPS64"
#elif defined(_ABIO32)
#elif _MIPS_SIM == _MIPS_SIM_ABI32
#define OSPLAT "OSPLAT=MIPS32"
#endif
#endif