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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Zinkovsky <igorzi@microsoft.com>2012-02-07 10:53:39 +0400
committerIgor Zinkovsky <igorzi@microsoft.com>2012-02-08 01:32:53 +0400
commit0a347559bf6dc2832aa9802d346f351dd9354e71 (patch)
tree2aea74d6652ad563c421d1e118ef100570fa9be4 /vcbuild.bat
parent7543c38dca2b4c64711f5667b82d80ffab3fd6a2 (diff)
enable x64 windows build
use "vcbuild x64" to do x64 build of node.exe
Diffstat (limited to 'vcbuild.bat')
-rw-r--r--vcbuild.bat8
1 files changed, 6 insertions, 2 deletions
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.