aboutsummaryrefslogblamecommitdiff
path: root/www/ungoogled-chromium/files/patch-base_allocator_partition__allocator_partition__alloc.gni
blob: 4c5f2d0ca3b510d377788c389e3b47c6d9b2675c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                                                       
                                                          

                                        






                                                                                          
                                    

                                                                             


                                                                                      
  

                                                                            
--- base/allocator/partition_allocator/partition_alloc.gni.orig	2024-04-23 07:42:17 UTC
+++ base/allocator/partition_allocator/partition_alloc.gni
@@ -33,7 +33,7 @@ if (is_nacl) {
 use_large_empty_slot_span_ring = is_mac
 
 has_memory_tagging =
-    current_cpu == "arm64" && is_clang && !is_asan && (is_linux || is_android)
+    current_cpu == "arm64" && is_clang && !is_asan && !is_bsd && (is_linux || is_android)
 
 declare_args() {
   # Causes all the allocations to be routed via allocator_shim.cc. Usually,
@@ -351,7 +351,7 @@ declare_args() {
   # dependencies that use partition_allocator are compiled in AOSP against a
   # version of glibc that does not include pkeys syscall numbers.
   enable_pkeys =
-      (is_linux || is_chromeos) && target_cpu == "x64" && !is_cronet_build
+      !is_bsd && (is_linux || is_chromeos) && target_cpu == "x64" && !is_cronet_build
 }
 assert(!enable_pkeys || ((is_linux || is_chromeos) && target_cpu == "x64"),
        "Pkeys are only supported on x64 linux and ChromeOS")