diff options
author | Mike Pall <mike> | 2010-01-17 20:33:13 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-01-17 20:33:13 +0100 |
commit | 09ca54d9bcbc8aa5e0e9f86cf58d74c232960711 (patch) | |
tree | 5d737689dd381f2bf23e2e8e96a8ccd210b70c46 /src | |
parent | 49e3bdf080ed2ff0f64332aa2b4997061021967f (diff) | |
download | luajit-09ca54d9bcbc8aa5e0e9f86cf58d74c232960711.tar.gz luajit-09ca54d9bcbc8aa5e0e9f86cf58d74c232960711.tar.bz2 luajit-09ca54d9bcbc8aa5e0e9f86cf58d74c232960711.zip |
Enable build for x64 interpreter on WIN64.
To build the x64 interpreter open a "Windows SDK Command Shell".
Then set the compiler environment: setenv /release /x64
Then cd to the src directory and run msvcbuild.bat.
Diffstat (limited to 'src')
-rw-r--r-- | src/msvcbuild.bat | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/msvcbuild.bat b/src/msvcbuild.bat index 6ea80219..200c651f 100644 --- a/src/msvcbuild.bat +++ b/src/msvcbuild.bat | |||
@@ -1,8 +1,15 @@ | |||
1 | @rem Script to build LuaJIT with MSVC. | 1 | @rem Script to build LuaJIT with MSVC. |
2 | @rem Copyright (C) 2005-2010 Mike Pall. See Copyright Notice in luajit.h | 2 | @rem Copyright (C) 2005-2010 Mike Pall. See Copyright Notice in luajit.h |
3 | @rem | 3 | @rem |
4 | @rem Open a "Visual Studio .NET Command Prompt", cd to this directory | 4 | @rem Either open a "Visual Studio .NET Command Prompt" |
5 | @rem and run this script. | 5 | @rem (Note that the Express Edition does not contain an x64 compiler) |
6 | @rem -or- | ||
7 | @rem Open a "Windows SDK Command Shell" and set the compiler environment: | ||
8 | @rem setenv /release /x86 | ||
9 | @rem -or- | ||
10 | @rem setenv /release /x64 | ||
11 | @rem | ||
12 | @rem Then cd to this directory and run this script. | ||
6 | 13 | ||
7 | @if not defined INCLUDE goto :FAIL | 14 | @if not defined INCLUDE goto :FAIL |
8 | 15 | ||
@@ -16,6 +23,8 @@ | |||
16 | 23 | ||
17 | if not exist buildvm_x86.h^ | 24 | if not exist buildvm_x86.h^ |
18 | %DASM% -LN -o buildvm_x86.h buildvm_x86.dasc | 25 | %DASM% -LN -o buildvm_x86.h buildvm_x86.dasc |
26 | if not exist buildvm_x64win.h^ | ||
27 | %DASM% -LN -D X64 -D X64WIN -o buildvm_x64win.h buildvm_x86.dasc | ||
19 | 28 | ||
20 | %LJCOMPILE% /I "." /I %DASMDIR% buildvm*.c | 29 | %LJCOMPILE% /I "." /I %DASMDIR% buildvm*.c |
21 | %LJLINK% /out:buildvm.exe buildvm*.obj | 30 | %LJLINK% /out:buildvm.exe buildvm*.obj |