Open Bug 1141171 Opened 9 years ago Updated 2 years ago

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

Categories

(Firefox Build System :: General, defect)

x86
Windows 7
defect

Tracking

(Not tracked)

People

(Reporter: benjamin, Unassigned)

Details

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)
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.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.