Use -Og by default when compiling with --enable-debug

NEW
Unassigned

Status

Firefox Build System
General
3 years ago
3 months ago

People

(Reporter: Benjamin Smedberg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
Unoptimized builds are often too slow to be useful. However the default optimization level often makes debugging painful, because local variables are optimized away.

I suggest that when --enable-debug is specified and there is no --enable/disable-optimize flag, we should default to -Og. This will leave the browser debuggable but with better performance than --disable-optimize.

Glandium, thoughts?
Flags: needinfo?(mh+mozilla)
Bug 1048372 is somehow related. If we do that on windows, we might as well do it on mac/linux.
Flags: needinfo?(mh+mozilla)
(Reporter)

Comment 2

3 years ago
Bug 1048372 stores extra debuginfo but doesn't change the generated code and so we could use it on any build. -Og changes the optimization level, so it's not something that we'd want to do for release builds in general.

Updated

3 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.