diff options
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 |