[Webkit-unassigned] [Bug 252679] New: [CMake] Only enable -gsplit-dwarf in Debug or RelWithDebInfo builds
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 21 10:53:55 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=252679
Bug ID: 252679
Summary: [CMake] Only enable -gsplit-dwarf in Debug or
RelWithDebInfo builds
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
CC: bugs-noreply at webkitgtk.org, calvaris at igalia.com,
philn at igalia.com
Let's follow this rule: if build type is Debug or RelWithDebInfo, then be helpful and enable debug fission automatically so that we have optimal defaults for developers. But if build type is anything else, then the user must be adding -g manually for debug fission to be useful. If user is manually editing compiler flags, trust that the user knows best and will add -gsplit-dwarf is desired to avoid breaking distro debuginfo systems.
You can also use -DDEBUG_FISSION=ON/OFF to override WebKit's defaults if this guesses wrong, and I almost went with this solution downstream, but (a) this will probably confuse lots of distros or result in broken debuginfo generation, and (b) it's also just nicer to simplify the CMake file.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230221/0801f337/attachment.htm>
More information about the webkit-unassigned
mailing list