Closed Bug 1267845 Opened 8 years ago Closed 8 years ago

use LTO when linking the Rust staticlib for libxul

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox49 affected)

RESOLVED DUPLICATE of bug 1268547
Tracking Status
firefox49 --- affected

People

(Reporter: froydnj, Assigned: froydnj)

References

Details

Given https://github.com/rust-lang/rust/issues/33221 and the discussions therein, we should be using LTO on the staticlib for libxul, if for no other reason than to strip away all the parts of the standard library that we're not using, and reduce binary size generally.  Activating Rust on Android isn't going to be viable without doing something about the size issues mentioned in that bug.

It'll make the build take longer, though, which wouldn't be so great.  Maybe we could only activate LTO when we were doing an official build.
Oops, didn't see your bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.