From f011842875efd02824625482b3e98774a9024016 Mon Sep 17 00:00:00 2001 From: andrewhayden Date: Sat, 5 Sep 2015 13:58:36 -0700 Subject: [PATCH] Add cld2_table_size variable to GN build. This variable has been in common.gypi for some time, but was missing from GN. BUG=528257 Review URL: https://codereview.chromium.org/1306053014 Cr-Original-Commit-Position: refs/heads/master@{#347576} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: b32a1daf9763b66e7f12a3e88e4b526589dd8479 --- common.gypi | 4 ++-- config/features.gni | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common.gypi b/common.gypi index 70d5ac60f..7900d9449 100644 --- a/common.gypi +++ b/common.gypi @@ -564,8 +564,8 @@ # For CLD2, the size of the tables that should be included in the build # Only evaluated if cld_version == 2. # See third_party/cld_2/cld_2.gyp for more information. - # 0: Small tables, lower accuracy - # 2: Large tables, high accuracy + # 0: Small tables, high accuracy + # 2: Large tables, higher accuracy 'cld2_table_size%': 2, # Enable spell checker. diff --git a/config/features.gni b/config/features.gni index f6469e234..a32d8112c 100644 --- a/config/features.gni +++ b/config/features.gni @@ -129,6 +129,12 @@ declare_args() { # 2: Use only CLD2. cld_version = 2 +if (is_android || is_ios) { + cld2_table_size = 0 # Small, accurate tables +} else { + cld2_table_size = 2 # Larger, more accurate tables +} + # libudev usage. This currently only affects the content layer. use_udev = is_linux