summaryrefslogtreecommitdiff
path: root/chromium/base/allocator/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/allocator/BUILD.gn')
-rw-r--r--chromium/base/allocator/BUILD.gn14
1 files changed, 8 insertions, 6 deletions
diff --git a/chromium/base/allocator/BUILD.gn b/chromium/base/allocator/BUILD.gn
index eb808ba556c..c6649c53e82 100644
--- a/chromium/base/allocator/BUILD.gn
+++ b/chromium/base/allocator/BUILD.gn
@@ -276,12 +276,14 @@ if (use_allocator == "tcmalloc") {
buildflag_header("buildflags") {
header = "buildflags.h"
- flags = [ "USE_ALLOCATOR_SHIM=$use_allocator_shim" ]
- if (use_allocator == "tcmalloc") {
- flags += [ "USE_TCMALLOC=1" ]
- } else {
- flags += [ "USE_TCMALLOC=0" ]
- }
+ _use_partition_alloc = use_allocator == "partition"
+ _use_tcmalloc = use_allocator == "tcmalloc"
+
+ flags = [
+ "USE_ALLOCATOR_SHIM=$use_allocator_shim",
+ "USE_TCMALLOC=$_use_tcmalloc",
+ "USE_PARTITION_ALLOC_AS_MALLOC=$_use_partition_alloc",
+ ]
}
# Used to shim malloc symbols on Android. see //base/allocator/README.md.