Closed Bug 1557507 Opened 5 years ago Closed 5 years ago

Default to lld linker for Android builds

Categories

(Firefox Build System :: General, task)

task
Not set
normal

Tracking

(firefox69 fixed)

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file)

No description provided.

The current logic is that if the compiler somehow uses gold rather than
BFD ld by default, we let it, but if it uses BFD ld, we default to lld.
When doing Android builds, the compiler finds the linker in the NDK, and
the default ld binary is gold. So we currently end up using fold for
Android builds.

Here, we change the logic such that we use lld when the default linker
the compiler uses is either BFD ld or gold. We can't go with "is not
lld" because the other possible kind, ld64, is what we actually want to
use on mac, since lld doesn't support mach-o fully just yet.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/2d8ad105aac8 Default to lld linker for local builds in more cases. r=nalexander

Backed out changeset 2d8ad105aac8 (Bug 1557507) on Glandium's request

Backout link: https://hg.mozilla.org/integration/autoland/rev/2d0d626875641a4abaf0387d1d9c72c0b46cb605

Flags: needinfo?(mh+mozilla)
Flags: needinfo?(mh+mozilla)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/5e8d4f11d199 Default to lld linker for local builds in more cases. r=nalexander

Bugbug thinks this bug is a task, but please change it back in case of error.

Type: defect → task
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: