From 959fd0882afdd48a7358390562a3d7e4a4a252b5 Mon Sep 17 00:00:00 2001 From: Dmitry Bezhetskov Date: Thu, 27 Aug 2026 17:19:13 +0200 Subject: [PATCH] Enable debug for v8's heap.cc --- .bazelrc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.bazelrc b/.bazelrc index a6b2b073cd8..0d8cd85cd50 100644 --- a/.bazelrc +++ b/.bazelrc @@ -74,13 +74,6 @@ build --cxxopt=-DKJ_WARN_REFCOUNTED_ATTACH=1 # TODO(cleanup): Causes warnings with LLVM20, fix and enable again build --copt=-Wno-nontrivial-memaccess -# Unconditionally optimize V8 heap.cc on macOS – when optimization or inlining are disabled, this -# file appears to cause segfaults at workerd startup on macOS. -# TODO(cleanup): Investigate why this happens, our patches do not modify heap.cc itself so the bug -# might be introduced through a header included in heap.cc, through the Bazel build configuration or -# a bug in Apple LLVM. -build:macos --per_file_copt=v8/src/heap/heap.cc@-O3 - # The macOS apple_support toolchain sets -DDEBUG for fastbuild, unlike the Linux toolchain. This is # unhelpful for compile speeds and test performance, and may cause compile errors based on V8 DCHECK # macros that reference symbols only available with V8_VERIFY_WRITE_BARRIERS (a debug-only define),