Opened 10 years ago

Last modified 10 years ago

#7026 new Patches

bjam: Use 64-bit MSVC tools on Win64, even in a 32-bit shell

Reported by: frank.richter@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.50.0 Severity: Optimization
Keywords: Cc:

Description

When building with toolset=msvc address-model=64 in a 32-bit shell on Win64, the cross tools (32-bit targeting 64-bit) instead of the native 64-bit tools are used. The reason is the PROCESSOR_ARCHITECTURE env var pretending to be a 32-bit environment. However, on 64-bit Windows, the correct native value can be found in PROCESSOR_ARCHITEW6432. The attached patch makes the logic to determine the tools to use respect that alternative variable.

Attachments (1)

bjam-msvc-w6432.diff (854 bytes ) - added by frank.richter@… 10 years ago.
Patch: processor architecture in 32-bit shells under Win64

Download all attachments as: .zip

Change History (2)

by frank.richter@…, 10 years ago

Attachment: bjam-msvc-w6432.diff added

Patch: processor architecture in 32-bit shells under Win64

comment:1 by frank.richter@…, 10 years ago

Component: Nonebuild
Owner: set to Vladimir Prus
Note: See TracTickets for help on using tickets.