Linux/Compiler Options: Difference between revisions

add a note about how to use --enable-optimize
(add overview section)
(add a note about how to use --enable-optimize)
Line 1: Line 1:
=Overview=
=Overview=
==Proper use of compiler options==
'''Don't set a default optimization level for the entire browser build.'''
Different parts of Mozilla run faster at different optimization levels.  For example, cairo, pixman and sqlite are compiled at -O2 because they are fastest at that level while the JS engine is fastest at -Os. [https://bugzilla.mozilla.org/show_bug.cgi?id=409803#c9]  If you want to use --enable-optimize, don't add extra optimization flags there.  That's a global setting that sets optimization levels [http://lxr.mozilla.org/seamonkey/search?string=MODULE_OPTIMIZE_FLAGS throughout the source tree].  Instead pass non-optimization flags that you care about via CFLAGS and CXXFLAGS during the build.


=Compilers=
=Compilers=
canmove, Confirmed users
1,577

edits