Closed Bug 1834678 Opened 2 years ago Closed 2 years ago

Switch wrench mac builds to lld

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(5 files)

No description provided.

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.

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.

Using lld fails to link with anything below 10.8 because of a bug, and
10.12 is what Firefox uses.

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.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/727d3318884a Upgrade meson to 1.1.0. r=gfx-reviewers,gw https://hg.mozilla.org/integration/autoland/rev/f22b43fba893 Change the llvm-config trick for cross-compilation. r=gfx-reviewers,gw https://hg.mozilla.org/integration/autoland/rev/d797d4d1d1c6 Bump minimum macos version to 10.12 for wrench builds. r=gfx-reviewers,gw https://hg.mozilla.org/integration/autoland/rev/8ebad2eaee34 Switch wrench mac builds to lld. r=gfx-reviewers,gw https://hg.mozilla.org/integration/autoland/rev/c1577427eba7 Fix pkg-config call in wrench mac script. r=gfx-reviewers,gw
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: