Switch wrench mac builds to lld
Categories
(Core :: Graphics: WebRender, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
Details
Attachments
(5 files)
Assignee | ||
Comment 1•2 years ago
|
||
The old version that is currently used doesn't support lld for mac, and
tries to pass it flags for BFD ld (e.g. --as-needed).
For some reason meson checks fail because of some CFLAGS not being used
during the checks being reported as an error, so we make those errors
quiet.
Assignee | ||
Comment 2•2 years ago
|
||
Contrary to ld64, lld doesn't ignore libraries it's given on the command
line, and -lLLVM-14 ends up as a link error when using lld.
So instead of relying on the flags llvm-config outputs to be kind of
ignored, we replace them at the source by wrapping llvm-config itself.
Assignee | ||
Comment 3•2 years ago
|
||
Using lld fails to link with anything below 10.8 because of a bug, and
10.12 is what Firefox uses.
Assignee | ||
Comment 4•2 years ago
|
||
Assignee | ||
Comment 5•2 years ago
|
||
Not that it matters, because there aren't any pkg-config in the macos
SDK anyways, but for purity's sake, while we're in the vicinity.
Comment 7•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/727d3318884a
https://hg.mozilla.org/mozilla-central/rev/f22b43fba893
https://hg.mozilla.org/mozilla-central/rev/d797d4d1d1c6
https://hg.mozilla.org/mozilla-central/rev/8ebad2eaee34
https://hg.mozilla.org/mozilla-central/rev/c1577427eba7
Description
•