WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
312609
[CMake] Skip -dead_strip in Debug builds on macOS
https://bugs.webkit.org/show_bug.cgi?id=312609
Summary
[CMake] Skip -dead_strip in Debug builds on macOS
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-04-17 15:52:09 PDT
<
rdar://problem/175041322
>
zak ridouh
Comment 2
2026-04-17 15:53:56 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/63009
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.
Top of Page
Format For Printing
XML
Clone This Bug