summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--third_party/cld/README.chromium3
-rw-r--r--third_party/cld/base/build_config.h5
2 files changed, 8 insertions, 0 deletions
diff --git a/third_party/cld/README.chromium b/third_party/cld/README.chromium
index 35074cc..865ba58 100644
--- a/third_party/cld/README.chromium
+++ b/third_party/cld/README.chromium
@@ -10,3 +10,6 @@ The CLD is used to determine the language of text.
This library is open source Google code. It is currently only
available from the Chromium tree, and not well-documented otherwise.
+
+Local Modifications:
+ * Add support for arm64 architecture
diff --git a/third_party/cld/base/build_config.h b/third_party/cld/base/build_config.h
index 3f64d2c..8282028 100644
--- a/third_party/cld/base/build_config.h
+++ b/third_party/cld/base/build_config.h
@@ -89,6 +89,11 @@
#define ARCH_CPU_ARMEL 1
#define ARCH_CPU_32_BITS 1
#define WCHAR_T_IS_UNSIGNED 1
+#elif defined(__arm64__)
+#define ARCH_CPU_ARM_FAMILY 1
+#define ARCH_CPU_ARM64 1
+#define ARCH_CPU_64_BITS 1
+#define WCHAR_T_IS_UNSIGNED 1
#elif defined(__MIPSEL__)
#define ARCH_CPU_MIPS_FAMILY 1
#define ARCH_CPU_MIPSEL 1