Closed
Bug 407794
Opened 16 years ago
Closed 16 years ago
Nightlies should not override the module-specific build settings.
Categories
(Firefox Build System :: General, defect, P2)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sayrer, Assigned: sayrer)
References
Details
(Keywords: perf)
Attachments
(2 files, 1 obsolete file)
5.18 KB,
patch
|
mtschrep
:
approval1.9+
|
Details | Diff | Splinter Review |
5.95 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
This is bad. At least, it's bad that we do this in nightlies and release builds. It's unlikely that a global setting is good. For example, sqlite should be built with very high optimization, not "-O2". Nightlies should not override the module-specific build settings.
Flags: blocking1.9?
Assignee | ||
Updated•16 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Assignee | ||
Comment 1•16 years ago
|
||
sqlite would like to be built with: -O3 on gcc -xO5 on sun -Ox on msvc http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/db/sqlite3/src/Makefile.in&rev=1.30#59
Assignee | ||
Updated•16 years ago
|
Summary: --enable-optimize overrides module-specific optimization settings → Nightlies should not override the module-specific build settings.
Comment 2•16 years ago
|
||
I suggested in another bug that we switch to using --enable-optimize --enable-debugger-info-modules This won't quite work on Linux, afaik, since we need to explicitly set -gstabs+, but we might be able to work around that in other ways.
Comment 3•16 years ago
|
||
For reference: http://lxr.mozilla.org/mozilla/source/config/config.mk#538 http://lxr.mozilla.org/mozilla/source/tools/tinderbox-configs/firefox/macosx/mozconfig#15
Comment 4•16 years ago
|
||
Linux is actually goofier, fwiw: http://lxr.mozilla.org/mozilla/source/tools/tinderbox-configs/firefox/linux/mozconfig#14 Only Win32 doesn't screw with this: http://lxr.mozilla.org/mozilla/source/tools/tinderbox-configs/firefox/win32/mozconfig
Comment 5•16 years ago
|
||
I believe the correct solution is to add export CFLAGS=-gstabs+ export CXXFLAGS=-gstabs+ to the mozconfig, and remove the --enable-optimize flag(s) Neither --enable-debugger-info-modules nor MOZ_DEBUG_SYMBOLS affects NSPR on non-windows correctly
Assignee | ||
Comment 6•16 years ago
|
||
Attachment #292478 -
Flags: review?(ted.mielczarek)
Comment 7•16 years ago
|
||
Comment on attachment 292478 [details] [diff] [review] use the right settings for each tier1 by default, so modules can override Could you add comments to the mozconfigs so that nobody undoes this later? Just something like # Don't add explicit optimize flags here, set them in configure.in, see bug 407794. Also a comment above the CFLAGS/CXXFLAGS explaining that this is for Breakpad would be helpful.
Attachment #292478 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 8•16 years ago
|
||
Assignee: nobody → sayrer
Attachment #292478 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #292484 -
Flags: approval1.9?
Comment 9•16 years ago
|
||
Comment on attachment 292484 [details] [diff] [review] address ted's comments go go sayre
Attachment #292484 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 10•16 years ago
|
||
This had to be backed out due to a test failure on Linux. It seemed to hurt mac performance on some tests and improve it on others. Makes sense: shifting to -Os in a few too many places.
Updated•16 years ago
|
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
Assignee | ||
Comment 11•16 years ago
|
||
Attachment #293018 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 12•16 years ago
|
||
Comment on attachment 293018 [details] [diff] [review] patch with wallpaper for various issues This contains a workaround for bug 408258, since we should stop shipping builds with that problem immediately. It reverts the OS X default optimization to O2, since -Os that regressed Tp and Tdhtml slightly. And since -Os is no longer the default for spidermonkey on mac, this incorporates the already-reviewed patch from bug 407600.
Updated•16 years ago
|
Attachment #293018 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Updated•16 years ago
|
Attachment #293018 -
Flags: approval1.9?
Assignee | ||
Comment 13•16 years ago
|
||
Comment on attachment 293018 [details] [diff] [review] patch with wallpaper for various issues it blocks, no need to approve
Attachment #293018 -
Flags: approval1.9?
Assignee | ||
Updated•16 years ago
|
Assignee | ||
Comment 14•16 years ago
|
||
This works. Filed bugs on issues uncovered by this change: bug 408258 bug 408418 bug 408422
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•