Ticket #7026: bjam-msvc-w6432.diff

File bjam-msvc-w6432.diff, 854 bytes (added by frank.richter@…, 10 years ago)

Patch: processor architecture in 32-bit shells under Win64

  • tools/build/v2/tools/msvc.jam

    diff -ru boost_1_50_0_beta1.org/tools/build/v2/tools/msvc.jam boost_1_50_0_beta1/tools/build/v2/tools/msvc.jam
    old new  
    853853            # 'x86' when running 32-bit Windows, no matter which processor is
    854854            # used, and 'AMD64' on 64-bit windows on x86 (either AMD64 or EM64T)
    855855            # Windows.
     856            # PROCESSOR_ARCHITEW6432 is set when running a 64-bit Windows, but
     857            # the shell is 32-bit.
    856858            #
    857859            if [ MATCH ^(AMD64) : [ os.environ PROCESSOR_ARCHITECTURE ] ]
     860                || [ MATCH ^(AMD64) : [ os.environ PROCESSOR_ARCHITEW6432 ] ]
    858861            {
    859862                default-global-setup-options-amd64 = amd64 ;
    860863            }