1# Copyright 2022 The PDFium 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/config/sanitizers/sanitizers.gni") 6 7# Sanitizers replace the allocator, don't use our own allocator. 8_is_using_sanitizers = is_asan || is_hwasan || is_lsan || is_tsan || is_msan 9 10# The allocator shim isn't working standalone on Windows at the moment. 11# TODO(https://crbug.com/pdfium/2068) - make work with windows. 12_use_shim = !_is_using_sanitizers && !is_win 13 14# See base/allocator/partition_allocator/external_builds.md 15use_allocator_shim_default = _use_shim 16use_partition_alloc_as_malloc_default = _use_shim 17enable_backup_ref_ptr_support_default = _use_shim 18enable_mte_checked_ptr_support_default = false 19put_ref_count_in_previous_slot_default = false 20enable_backup_ref_ptr_slow_checks_default = false 21enable_dangling_raw_ptr_checks_default = false 22