xref: /aosp_15_r20/external/cronet/base/allocator/partition_allocator/build_overrides/partition_alloc.gni (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2022 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build_overrides/build.gni")
6
7# This is the default build configuration when building PartitionAlloc
8# as a standalone library.
9# If embedders want to use PartitionAlloc, they need to create their own
10# //build_overrides/partition_alloc.gni and define their own PartitionAlloc
11# configuration.
12use_partition_alloc_as_malloc_default = false
13use_allocator_shim_default = false
14enable_backup_ref_ptr_support_default = false
15enable_backup_ref_ptr_slow_checks_default = false
16enable_dangling_raw_ptr_checks_default = false
17assert_cpp20_default = true
18
19# This is the default build configuration for pointers/raw_ptr*.
20raw_ptr_zero_on_construct_default = true
21raw_ptr_zero_on_move_default = true
22raw_ptr_zero_on_destruct_default = false
23