[Webkit-unassigned] [Bug 235737] New: [CMake] Do not require GNU Gold usage to enable DEBUG_FISSION
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 27 14:45:20 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=235737
Bug ID: 235737
Summary: [CMake] Do not require GNU Gold usage to enable
DEBUG_FISSION
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CMake
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aperez at igalia.com
As per my comment at https://bugs.webkit.org/show_bug.cgi?id=235476#c4
all of ld.bfd, lld, and mold support split-debug builds, and there is
not reason whatsoever to make the DEBUG_FISSION option depend on the
value of the USE_LD_GOLD one.
% cat hello.cc
#include <cstdio>
extern const char* whom();
int main() { std::printf("Hello, %s!\n", whom()); }
% cat other.cc
const char* whom() { return "Pete"; }
% g++ -gsplit-dwarf -ggdb -c hello.cc
% g++ -gsplit-dwarf -ggdb -c other.cc
% g++ -gsplit-dwarf -ggdb -fuse-ld=bfd -o hello hello.o other.o
% dwarfdump hello | grep DW_AT_dwo_name | sort -u
DW_AT_dwo_name hello.dwo
DW_AT_dwo_name other.dwo
(Replacing g++ with clang++ above also works, plus the Clang compiler
driver will happily accept any -fuse-ld=whatever as long as there is
a “ld.whatever” binary in the $PATH.)
--
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/20220127/a0a3959f/attachment.htm>
More information about the webkit-unassigned
mailing list