Closed Bug 1199808 Opened 9 years ago Closed 9 years ago

Fix Client build optimization settings

Categories

(Firefox for iOS :: Build & Test, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bnicholson, Assigned: bnicholson)

References

Details

Attachments

(1 file)

Log shows this trying to debug:

Client was compiled with optimization - stepping may behave oddly; variables may not be available.

We should turn off optimization for Debug builds.
Does this turn off optimization for release builds?

Also, IIRC we turned on whole-module optimization because the alternative is per-file, which is slower because of linking. Does this regress our build time?
Flags: needinfo?(bnicholson)
(In reply to Richard Newman [:rnewman] from comment #2)
> Does this turn off optimization for release builds?

No, WMO is still enabled for all non-Debug builds.

> Also, IIRC we turned on whole-module optimization because the alternative is
> per-file, which is slower because of linking. Does this regress our build
> time?

After doing a clean and build, build time seems about the same to me (~1 min for full build, with following incremental builds taking <5s).
Flags: needinfo?(bnicholson)
(In reply to Brian Nicholson (:bnicholson) from comment #3)
> for full build, with following incremental builds taking <5s).

Actually, this is quite a bit *faster* than before. I'm pretty sure incremental builds were taking 15+ seconds for me before.
Attachment #8654367 - Flags: review? → review+
Component: General → Build & Test
https://github.com/mozilla/firefox-ios/commit/e978a2cd7ada711954132cf5c5d2ad3f56af9d60
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: