Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksoid <aleksoid@users.sourceforge.net>2010-08-25 07:24:21 +0400
committerAleksoid <aleksoid@users.sourceforge.net>2010-08-25 07:24:21 +0400
commitc9d153e4053b92c18a6b2ac5b866b49035a5087b (patch)
treec2caf851181a569bc2bdaec32e6d1a38a2719da4 /build.bat
parenteb2a429b1159007cee04771760ff8f7504f67e63 (diff)
Change : build.bat and build_2010.bat - different VC environment for x86 and x64, x64 different on x86 and x64 system)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2337 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat11
1 files changed, 7 insertions, 4 deletions
diff --git a/build.bat b/build.bat
index 9815ebeca..84cc77aa2 100644
--- a/build.bat
+++ b/build.bat
@@ -62,10 +62,13 @@ SET start_time=%date%-%time%
IF "%1" == "" (SET BUILDTYPE=/Build) ELSE (SET BUILDTYPE=/%1)
SET ORIGPATH="%CD%"
-REM FIXME: Does this work for x64 builds??
-REM we do have a good alternative vcvarsall.bat x86 | x64
-REM Default location: "C:\Program Files\Microsoft Visual Studio 9\VC\Vcvarsall.bat"
-CALL "%VS90COMNTOOLS%vsvars32.bat"
+SET build_type=x86
+IF "%2" == "x64" goto :build_x64
+goto :call_vcvarsall
+:build_x64
+IF "%PROGRAMFILES(x86)%zzz"=="zzz" (SET build_type=x86_amd64) ELSE (SET build_type=amd64)
+:call_vcvarsall
+CALL "%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" %build_type%
CD %ORIGPATH%
SET BUILD_APP=devenv /nologo