Bug 312609

Summary: [CMake] Skip -dead_strip in Debug builds on macOS
Product: WebKit Reporter: zak ridouh <zakr>
Component: CMakeAssignee: zak ridouh <zakr>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

zak ridouh
Reported 2026-04-17 15:52:03 PDT
Source/cmake/OptionsMac.cmake unconditionally passed -Wl,-dead_strip to the linker, while the Xcode build sets DEAD_CODE_STRIPPING = NO for Debug (DEAD_CODE_STRIPPING[config=Debug] = NO in the various Base.xcconfig files). This made CMake Debug builds slower to link and stripped symbols that are useful while debugging. Gate the option behind a generator expression so it only applies to non-Debug configurations, matching Xcode. -dead_strip_dylibs is left unchanged.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-17 15:52:09 PDT
zak ridouh
Comment 2 2026-04-17 15:53:56 PDT
EWS
Comment 3 2026-04-22 12:08:03 PDT
Committed 311794@main (e53d07efdb3a): <https://commits.webkit.org/311794@main> Reviewed commits have been landed. Closing PR #63009 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.