aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lfalloc
diff options
context:
space:
mode:
authorogladov <ogladov@yandex-team.com>2023-03-13 16:38:15 +0300
committerogladov <ogladov@yandex-team.com>2023-03-13 16:38:15 +0300
commit4d8540eb0daa691e068e943d6b9ccd1efb80139c (patch)
treeb41e9854a1e17cc083e2a1cd0ce52b2a4a21f270 /library/cpp/lfalloc
parentc6639e2510e9babdd401192557030f9b30f2d746 (diff)
downloadydb-4d8540eb0daa691e068e943d6b9ccd1efb80139c.tar.gz
Disable lfalloc for 32-bit ARM architectures
Disable lfalloc for ARM archtectures
Diffstat (limited to 'library/cpp/lfalloc')
-rw-r--r--library/cpp/lfalloc/lf_allocX64.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/cpp/lfalloc/lf_allocX64.cpp b/library/cpp/lfalloc/lf_allocX64.cpp
index 2eb90761fe..7b4f2eb56d 100644
--- a/library/cpp/lfalloc/lf_allocX64.cpp
+++ b/library/cpp/lfalloc/lf_allocX64.cpp
@@ -1,5 +1,10 @@
#include "lf_allocX64.h"
+//__arm__ id defined in clang for 32-bit ARM architectures only
+#if defined(__arm__) && !defined(__aarch64__)
+#error This allocator does not support 32-bit architectures. Please use another allocator instead!
+#endif
+
//////////////////////////////////////////////////////////////////////////
// hooks
#if defined(USE_INTELCC) || defined(_darwin_) || defined(_freebsd_) || defined(_STLPORT_VERSION)