summaryrefslogtreecommitdiff
path: root/src/mongo/platform
diff options
context:
space:
mode:
authorRobie Basak <robie.basak@canonical.com>2013-12-10 14:05:01 +0000
committerMatt Kangas <matt.kangas@mongodb.com>2014-01-07 14:19:50 -0500
commitc9edb7fd03e67827227a7cb3c7c40555efcae152 (patch)
tree94f63648a95b35b02736aa274f640fd0720fd616 /src/mongo/platform
parentdf3d84e688efbaa7c83666a1122761c29d10dfbe (diff)
downloadmongo-c9edb7fd03e67827227a7cb3c7c40555efcae152.tar.gz
SERVER-12065 Support ARM and AArch64 builds
Detect platforms that define __arm__ and __aarch64__ as 32-bit and 64-bit platforms respectively.
Diffstat (limited to 'src/mongo/platform')
-rw-r--r--src/mongo/platform/bits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/platform/bits.h b/src/mongo/platform/bits.h
index 7afc428556b..860bfbdcced 100644
--- a/src/mongo/platform/bits.h
+++ b/src/mongo/platform/bits.h
@@ -19,9 +19,9 @@
// figure out if we're on a 64 or 32 bit system
-#if defined(__x86_64__) || defined(__amd64__) || defined(_WIN64)
+#if defined(__x86_64__) || defined(__amd64__) || defined(_WIN64) || defined(__aarch64__)
#define MONGO_PLATFORM_64
-#elif defined(__i386__) || defined(_WIN32)
+#elif defined(__i386__) || defined(_WIN32) || defined(__arm__)
#define MONGO_PLATFORM_32
#else
#error "unknown platform"