Skip to content

Commit 2e79b66

Browse files
committed
[GTK][WPE] Fix build with -DENABLE_MALLOC_HEAP_BREAKDOWN=ON and without libpas
https://bugs.webkit.org/show_bug.cgi?id=300883 Reviewed by Yusuke Suzuki and Michael Catanzaro. BENABLE_MALLOC_HEAP_BREAKDOWN needs to be propagated to bmalloc users, since it is used in public bmalloc headers like IsoTLSInlines.h Co-authored-by: Loïc Yhuel <loic.yhuel@softathome.com> * Source/bmalloc/CMakeLists.txt: Canonical link: https://commits.webkit.org/301712@main
1 parent 8a88cb9 commit 2e79b66

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎Source/bmalloc/CMakeLists.txt‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ set(bmalloc_LIBRARIES
706706
)
707707

708708
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
709+
list(APPEND bmalloc_DEFINITIONS BENABLE_MALLOC_HEAP_BREAKDOWN=1)
709710
list(APPEND bmalloc_LIBRARIES ${MALLOC_HEAP_BREAKDOWN_LIBRARIES})
710711
endif ()
711712

@@ -730,10 +731,6 @@ if (MSVC)
730731
add_compile_options(-mcx16)
731732
endif ()
732733

733-
if (ENABLE_MALLOC_HEAP_BREAKDOWN)
734-
add_definitions(-DBENABLE_MALLOC_HEAP_BREAKDOWN=1)
735-
endif ()
736-
737734
WEBKIT_FRAMEWORK_DECLARE(bmalloc)
738735
WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()
739736

0 commit comments

Comments
 (0)