From: Marc Hoersken Date: Thu, 1 Nov 2012 21:23:05 +0000 (+0100) Subject: winbuild: Use machine type of development environment X-Git-Tag: curl-7_28_1~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c0f201075029a7c87c5cfe84f0405bb08441fbf;p=thirdparty%2Fcurl.git winbuild: Use machine type of development environment This patch restores the original behavior instead of always falling back to x86 if no MACHINE-type was specified. --- diff --git a/winbuild/Makefile.vc b/winbuild/Makefile.vc index d81c6ffa98..222576e01e 100644 --- a/winbuild/Makefile.vc +++ b/winbuild/Makefile.vc @@ -32,7 +32,7 @@ CFGSET=true !MESSAGE ENABLE_WINSSL= - Enable native Windows SSL support, defaults to yes !MESSAGE GEN_PDB= - Generate Program Database (debug symbols for release build) !MESSAGE DEBUG= - Debug builds -!MESSAGE MACHINE= - Target architecture (default x86) +!MESSAGE MACHINE= - Target architecture (default x64 on AMD64, x86 on others) !ERROR please choose a valid mode !ENDIF @@ -55,8 +55,12 @@ ENABLE_SSPI = $(USE_SSPI) !ENDIF # default options -!IFNDEF MACHINE -MACHINE = x86 +!IFNDEF MACHINE +!IF "$(PROCESSOR_ARCHITECTURE)"=="AMD64" +MACHINE = x64 +!ELSE +MACHINE = x86 +!ENDIF !ENDIF !IFNDEF ENABLE_IDN