From 09364e3e167b48c2c7b56533621e29516a6f9fab Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 29 Jul 2024 01:18:17 -0700 Subject: [PATCH] Enable `MALLOC_HEAP_BREAKDOWN` in debug builds --- Source/cmake/OptionsJSCOnly.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmake/OptionsJSCOnly.cmake b/Source/cmake/OptionsJSCOnly.cmake index cafb4c5ee5a66..f07f9e1ee233f 100644 --- a/Source/cmake/OptionsJSCOnly.cmake +++ b/Source/cmake/OptionsJSCOnly.cmake @@ -17,13 +17,17 @@ set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_ WEBKIT_OPTION_BEGIN() WEBKIT_OPTION_DEFINE(USE_BUN_JSC_ADDITIONS "Whether to enable Bun's JSC additions" PUBLIC OFF) -if (USE_BUN_JSC_ADDITIONS) + +if(USE_BUN_JSC_ADDITIONS) SET_AND_EXPOSE_TO_BUILD(USE_BUN_JSC_ADDITIONS 1) - if (WIN32) + if(WIN32) SET_AND_EXPOSE_TO_BUILD(JS_NO_EXPORT 1) endif() +endif() + WEBKIT_OPTION_END() + WEBKIT_OPTION_BEGIN() WEBKIT_OPTION_DEFINE(ENABLE_MALLOC_HEAP_BREAKDOWN "Whether to enable MALLOC_HEAP_BREAKDOWN" PUBLIC OFF)