You need the below two lines to your mozconfig to get a 64-bit build.
ac_add_options --host=x86_64-pc-mingw32
ac_add_options --target=x86_64-pc-mingw32

This is documented on the below page, albeit not very well. In general,
that page could probably use some cleanup to reflect the new reality.
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites#Common_problems_hints_and_restrictions

-Ryan

On Tue, Jun 20, 2017 at 12:15 PM, Benjamin Smedberg <benja...@smedbergs.us>
wrote:

> Sorry, my question wasn't clear.
>
> How does one set in a mozconfig whether they want a 32-bit or 64-bit
> build? In the past I've always done that by launching the appropriate
> start-shell-msvc2015-x64 batch file.
>
> --BDS
>
> On Tue, Jun 20, 2017 at 12:12 PM, Ryan VanderMeulen <
> rvandermeu...@mozilla.com> wrote:
>
>> The build system will automatically use the MSVC 64-bit cross-compile
>> toolchain (amd64_x86) when building 32-bit. The logic for this lives in the
>> get_vc_paths function in build/moz.configure/toolchain.configure. So
>> yeah, things should Just Work depending on whether you have mozconfig set
>> to build 32-bit or 64-bit. I'm also going to want to note when this goes
>> final that the build system supports detection of both MSVC 2015 and 2017
>> at this point, defaulting to the latter if both are found. It can be
>> manually specified via the --with-visual-studio-version option, however.
>>
>> -Ryan
>>
>> On Tue, Jun 20, 2017 at 11:47 AM, Benjamin Smedberg <
>> benja...@smedbergs.us> wrote:
>>
>>>
>>>
>>> On Tue, Jun 20, 2017 at 11:35 AM, Ryan VanderMeulen <
>>> rvandermeu...@mozilla.com> wrote:
>>>
>>>> After a lot of local testing and help from others, I think MozillaBuild
>>>> 3.0 is ready to be considered a release candidate. If I don't hear of any
>>>> late-breaking blockers, I intend to get this signed and released on Friday.
>>>>
>>>> Major updates since 2.2.0:
>>>> * Windows 7+ 64-bit is officially required to install.
>>>> * A number of components were updated to their 64-bit versions, Python
>>>> included.
>>>> * nodejs and python3 were added.
>>>> * NSIS was updated to version 3.01 and older versions were removed.
>>>> * start-shell-msvc*.bat were removed in favor of using only
>>>> start-shell.bat. The build system handles all compiler and platform SDK
>>>> detection now.
>>>>
>>>
>>> As a person who didn't know about start-shell.bat before today: how do I
>>> configure a 64-bit or 32-bit build in this new setup? Is this something
>>> that would now be in the mozconfig?
>>>
>>> --BDS
>>>
>>>
>>>
>>
>
_______________________________________________
dev-builds mailing list
dev-builds@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to