This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix win32 gmake with win64 VC with 32 bit GCC in PATH build failure
authorDaniel Dragan <bulk88@hotmail.com>
Sat, 13 Feb 2016 09:05:24 +0000 (04:05 -0500)
committerTony Cook <tony@develop-help.com>
Mon, 15 Feb 2016 00:49:27 +0000 (11:49 +1100)
commit745dedb9b507e0e36ba9794c704b9b3fc44a8ab3
treea40085e5de526c1af782eaa7bfb87f497a9b668a
parent99b234bca42d2b5f9f5f74960bfd693b6d9c0b27
fix win32 gmake with win64 VC with 32 bit GCC in PATH build failure

The assignment of PROCESSOR_ARCHITEW6432 to PROCESSOR_ARCHITECTURE near
the "When we are running from a 32bit cmd.exe on AMD64 then" comment
doesn't happen if WIN64 var was already assigned to. Do the 32/64 auto
detection only for GCC builds, not for VC builds. I not implementing 32/64
and cl version (CCTYPE setting) detection by parsing stdout of "cl<enter>"
with batch and gmake syntax at this time.

failure message:
generate_uudmap.obj : fatal error LNK1112: module machine type 'x64'
conflicts with target machine type 'X86'
GNUmakefile:1416: recipe for target '..\generate_uudmap.exe' failed
gmake: *** [..\generate_uudmap.exe] Error 2
win32/GNUmakefile