From fd387b175ecb06276138c5b80a510aa50b754d32 Mon Sep 17 00:00:00 2001 From: James Page Date: Wed, 8 Jan 2014 11:01:27 +0000 Subject: [PATCH] Add support for detection of 64-bit powerpc Ubuntu 14.04 will ship with a little-endian PowerPC 64 bit architecture; add compiler macro check to detect this platform correctly. Note that right now, there is no v8 support for ppc64el; however its possible to build without javascript support to enable MongoDB on this new architecture. --- src/mongo/platform/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongo/platform/bits.h b/src/mongo/platform/bits.h index 860bfbdccedad..f3f443209024b 100644 --- a/src/mongo/platform/bits.h +++ b/src/mongo/platform/bits.h @@ -19,7 +19,7 @@ // figure out if we're on a 64 or 32 bit system -#if defined(__x86_64__) || defined(__amd64__) || defined(_WIN64) || defined(__aarch64__) +#if defined(__x86_64__) || defined(__amd64__) || defined(_WIN64) || defined(__aarch64__) || defined(__powerpc64__) #define MONGO_PLATFORM_64 #elif defined(__i386__) || defined(_WIN32) || defined(__arm__) #define MONGO_PLATFORM_32