build_disable_partition_alloc_on_mac.patch 1.1 KB

1234567891011121314151617181920212223
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: VerteDinde <[email protected]>
  3. Date: Tue, 1 Mar 2022 12:07:25 -0800
  4. Subject: build: disable partition alloc on mac
  5. Enabling partition alloc caused a crash when spawning
  6. a child process. This patch disables partition alloc for mac,
  7. and can be removed when the crash in fork is resolved.
  8. Related issue: https://github.com/electron/electron/issues/32718
  9. diff --git a/build_overrides/partition_alloc.gni b/build_overrides/partition_alloc.gni
  10. index 7ce71f04ed4c5c0da7dd6f26c35f01ddda490484..0c39dc9c08c1c29e842f8f924134609472b5a156 100644
  11. --- a/build_overrides/partition_alloc.gni
  12. +++ b/build_overrides/partition_alloc.gni
  13. @@ -40,7 +40,7 @@ _disable_partition_alloc = is_component_build || (is_win && is_debug)
  14. # - NaCl: No plans to support it.
  15. # - iOS: not done yet.
  16. -_is_partition_alloc_platform = !is_nacl && !is_ios
  17. +_is_partition_alloc_platform = !is_nacl && !is_ios && !is_mac
  18. # Under Windows debug build, the allocator shim is not compatible with CRT.
  19. # NaCl in particular does seem to link some binaries statically