Sorry but I disapprove this.
Because PROCESSOR_ARCHITEW6432 is set "AMD64" on 64bit OS
when using 32bit compiler.
Therefore, we never be able to build 32bit binary on 64bit OS,
if this patch would be applied.
So we should try/find another way.
I currently build 32-bit and 64-bit Vim on 64-bit Win10 without changing the
Makefile. I use 32-bit compiler for 32-bit target and 64-bit compiler for
64-bit target, but you seem to use 32-bit cross compiler targeting 64-bit.
The current makefile assume that the bitness of nmake.exe is the same as the
target, and it doesn't support cross compiling.
We need another approach to support cross compiling.
Regards,
Ken Takata
We may be able to use "Platform" environment variable for this purpose.
It get one of values: "x64", "X64", "X86" or "ARM" as cross compiling target,
in all of VS10, 11, 12, 14 environments.
You can see these variables at VC\bin\**\vcvars*.bat in each VS.
Hi Mike and Ken.
I have wrote a patch to use PLATFORM for this purpose.
Please try https://gist.github.com/koron/c51efe584d0b4e5686a4
Best.