From 0a347559bf6dc2832aa9802d346f351dd9354e71 Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Mon, 6 Feb 2012 22:53:39 -0800 Subject: enable x64 windows build use "vcbuild x64" to do x64 build of node.exe --- vcbuild.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'vcbuild.bat') diff --git a/vcbuild.bat b/vcbuild.bat index 74c02c73bff..71b46cbf1a4 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -14,6 +14,7 @@ if /i "%1"=="/?" goto help @rem Process arguments. set config=Debug set target=Build +set target_arch=ia32 set noprojgen= set nobuild= set nosign= @@ -28,6 +29,9 @@ if "%1"=="" goto args-done if /i "%1"=="debug" set config=Debug&goto arg-ok if /i "%1"=="release" set config=Release&goto arg-ok if /i "%1"=="clean" set target=Clean&goto arg-ok +if /i "%1"=="ia32" set target_arch=ia32&goto arg-ok +if /i "%1"=="x86" set target_arch=ia32&goto arg-ok +if /i "%1"=="x64" set target_arch=x64&goto arg-ok if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok if /i "%1"=="nobuild" set nobuild=1&goto arg-ok if /i "%1"=="nosign" set nosign=1&goto arg-ok @@ -56,14 +60,14 @@ if defined noprojgen goto msbuild @rem Generate the VS project. if defined nosnapshot goto nosnapshotgen -python tools\gyp_node -f msvs -G msvs_version=2010 +python tools\gyp_node -f msvs -G msvs_version=2010 -Dtarget_arch=%target_arch% if errorlevel 1 goto create-msvs-files-failed if not exist node.sln goto create-msvs-files-failed echo Project files generated. goto msbuild :nosnapshotgen -python tools\gyp_node -f msvs -G msvs_version=2010 -D v8_use_snapshot='false' +python tools\gyp_node -f msvs -G msvs_version=2010 -D v8_use_snapshot='false' -Dtarget_arch=%target_arch% if errorlevel 1 goto create-msvs-files-failed if not exist node.sln goto create-msvs-files-failed echo Project files generated. -- cgit v1.2.3