MozillaBuild is a meta-installer that provides everything needed to build Mozilla on Windows, sans Visual C++. Its source lives in https://hg.mozilla.org/mozilla-build/. Bugs should be filed in mozilla.org :: MozillaBuild. For information about building Mozilla on Win32, see the Mozilla Developer Center page.
The current version of MozillaBuild is 3.3. It is available on ftp.mozilla.org.
To Upgrade From A Previous Version
Upgrading from an earlier MozillaBuild installation is straightforward but each step is important.
- Delete your current MozillaBuild environment by moving your MozillaBuild folder into the trash. If you can't remove the existing installation, you probably have a terminal open or ssh-agent running. Terminate that process and try again.
- Install the new MozillaBuild release.
- If you had previously enabled Mintty, you will need to do so again by adding SET USE_MINTTY=1 to the top of start-shell.bat.
- Run ./mach vcs-setup --update-only to ensure that the version-control-tools repository is current (Mercurial extensions may break otherwise).
- Clobber any trees you have by running ./mach clobber (build errors may occur otherwise).
- Re-run ./mach bootstrap to ensure that your Rust toolchain is up-to-date.
The MozillaBuild package contains other software prerequisites necessary for building Mozilla, including the MSYS build environment,
Mercurial, CVS, Python, YASM, NSIS, and UPX, as well as optional but useful tools such as wget and emacs.
Note that the "UNIX-like" environment provided by MozillaBuild is only really useful for building and committing to the Mozilla source. Most command line tools you would expect in a modern Linux distribution are not present, and those tools that are provided can be as much as a decade or so old (especially those provided by MSYS). It's the old tools in particular that can cause problems since they often don't behave as expected, are buggy, or don't support command line arguments that have been taken for granted for years. For example, copying a source tree using
cp -rf src1 src2 does not work correctly because of an old version of cp (it gives "cp: will not create hard link" errors for some files). In short, MozillaBuild supports essential developer interactions with the Mozilla code, but beyond that don't be surprised if it trips you up in all sorts of exciting and unexpected ways.
MozillaBuild does not modify the Windows registry.
Command Prompt Tips and Caveats
- To paste into this window, you must right-click on the window's title bar, move your cursor to the “Edit” menu, and click “Paste”. You can also set “Quick Edit Mode” in the “Properties” menu and right-click the window to paste your selection.
- The MSYS root directory is located in
/c/mozilla-build/msysif you used the default installation directory.
- MozillaBuild 3.3
- MozillaBuild 3.2
- MozillaBuild 3.1.1
- MozillaBuild 3.1
- MozillaBuild 3.0
- MozillaBuild 2.2.0
- MozillaBuild 2.1.0
- MozillaBuild 2.0.0
- MozillaBuild 1.11.0
- MozillaBuild 1.10.0
- MozillaBuild 1.9.0
- MozillaBuild 1.8.0
- MozillaBuild 1.7
- MozillaBuild 1.6
- MozillaBuild 1.5.1: added YASM for WebM code in Firefox 4.
- MozillaBuild 1.5: Mercurial 1.5.4, Python 2.6.5, and support for Visual Studio 2010.
- MozillaBuild 1.4: Windows x64 compatibility and other.
- MozillaBuild 1.3
There are no release notes for 1.1 and below.
Old versions of MozillaBuild can also be found on ftp.mozilla.org.