Build:MozillaBuild For x64
From Mozilla x86-64
How to setup for x64 build environment. You cannot use same way of building 32-bit version. Also, for MSYS, see MSYS and Cygwin on x64 (AMD64) at first.
Contents |
Mozilla-Build
At first, download MozillaBuild package from https://developer.mozilla.org/en/Windows_Build_Prerequisites#MozillaBuild. MozillaBuild 1.4 or later supports x64 build environment.
Which script does I use to set the environment value?
- start-msvc8-x64.bat for Visual Studio 2005
- start-msvc9-x64.bat for Visual Studio 2008.
Also, if you use Windows XP x64 or 2003 x64, call \windows\syswow64\cmd.exe at first. MSYS only runs on 32-bit cmd.exe.
Sample .mozconfig file
This is a sample .mozconfig to build Firefox.
. $topsrcdir/browser/config/mozconfig mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../objdir ac_add_options --target=x86_64-pc-mingw32 ac_add_options --host=x86_64-pc-mingw32 ac_add_options --disable-ogg
Note that --target and --host have to set x86_64-pc-mingw32 due to no uname.exe for x64.
Can I use x64 version tools such as python?
Yes. Since there is Python, info-zip and 7-zip of x64 version, you can replace 32-bit version into MozillaBuild package with 64-bit version.
Of cource, even if you use x86 version, It will work fine.
bash not response?
When you run bash on some x64 environment, ssh-agent will hang. So if you hang bash, you need remove c:\mozilla-build\msys\etc\profile.d\profile-sshagent.sh.
