[CMake] Fix Mac CMake build for bmalloc#62544
[CMake] Fix Mac CMake build for bmalloc#62544webkit-commit-queue merged 1 commit intoWebKit:mainfrom
Conversation
|
EWS run on previous version of this PR (hash c3afb42) Details
|
c3afb42 to
48ecc5c
Compare
|
EWS run on previous version of this PR (hash 48ecc5c) Details
|
| find_library(FOUNDATION_LIBRARY Foundation) | ||
| list(APPEND bmalloc_LIBRARIES ${FOUNDATION_LIBRARY}) |
There was a problem hiding this comment.
Typically for CMake we put all platform-specific find_library() and find_package() calls in Source/cmake/Options{Mac,GTK,..}.cmake to have a single source where the main dependencies are listed. Is there some particular reason for this to be an exception?
Also, it may be possible to use bmalloc_PRIVATE_LIBRARIES here.
There was a problem hiding this comment.
All the existing CMake Mac code is structured in this way in PlatformMac.cmake. Let's clean it up in the second pass of PRs, once the main targets are fixed.
There was a problem hiding this comment.
I filed https://bugs.webkit.org/show_bug.cgi?id=312165 for this.
48ecc5c to
d09043a
Compare
|
EWS run on previous version of this PR (hash d09043a) Details
|
d09043a to
dfc4d99
Compare
|
EWS run on previous version of this PR (hash dfc4d99) Details
|
| @@ -624,6 +572,55 @@ set(bmalloc_PUBLIC_HEADERS | |||
| libpas/src/libpas/pas_zero_memory.h | |||
| libpas/src/libpas/pas_zero_mode.h | |||
| libpas/src/libpas/thingy_heap_config.h | |||
There was a problem hiding this comment.
thingy is a debug API, should this header belong alongside the other two thingy headers?
| find_library(FOUNDATION_LIBRARY Foundation) | ||
| list(APPEND bmalloc_LIBRARIES ${FOUNDATION_LIBRARY}) |
There was a problem hiding this comment.
All the existing CMake Mac code is structured in this way in PlatformMac.cmake. Let's clean it up in the second pass of PRs, once the main targets are fixed.
dfc4d99 to
33e626c
Compare
|
EWS run on current version of this PR (hash 33e626c) Details
|
https://bugs.webkit.org/show_bug.cgi?id=312019 rdar://problem/174561810 Reviewed by BJ Burg. Reorganize bmalloc headers into public and private sets so downstream targets only see the API surface they need. Add missing TZoneLog.h to the public list. Remove stale IsoHeap.cpp reference and add Foundation framework linking for ProcessCheck.mm. Add missing BAssert.h include in TZoneHeap.h. Based on a base patch by Simon Lewis. Incorporates private header reorganization from Ian Grunert (PR WebKit#62543). * Source/bmalloc/CMakeLists.txt: * Source/bmalloc/PlatformMac.cmake: * Source/bmalloc/bmalloc/TZoneHeap.h: Canonical link: https://commits.webkit.org/311104@main
33e626c to
be740b1
Compare
|
Committed 311104@main (be740b1): https://commits.webkit.org/311104@main Reviewed commits have been landed. Closing PR #62544 and removing active labels. |
🧪 api-ios
be740b1
33e626c
🛠 win🧪 win-tests🧪 ios-wk2-wpt🧪 api-mac-debug🧪 mac-wk1🧪 mac-intel-wk2