Index: base/allocator/BUILD.gn |
diff --git a/base/allocator/BUILD.gn b/base/allocator/BUILD.gn |
index 510c3d38f52fd2cb9715f51cd4b804343449adf6..d9ff4c51acefc83fc4b913f3daf12a19896c88f1 100644 |
--- a/base/allocator/BUILD.gn |
+++ b/base/allocator/BUILD.gn |
@@ -37,7 +37,7 @@ if (is_win) { |
} |
} |
-if (!is_android) { |
+if (use_allocator == "tcmalloc") { |
# tcmalloc currently won't compile on Android. |
source_set("tcmalloc") { |
tcmalloc_dir = "//third_party/tcmalloc/chromium" |