@rem Script to build LuaJIT with MSVC.\r
@rem Copyright (C) 2005-2010 Mike Pall. See Copyright Notice in luajit.h\r
@rem\r
-@rem Open a "Visual Studio .NET Command Prompt", cd to this directory\r
-@rem and run this script.\r
+@rem Either open a "Visual Studio .NET Command Prompt"\r
+@rem (Note that the Express Edition does not contain an x64 compiler)\r
+@rem -or-\r
+@rem Open a "Windows SDK Command Shell" and set the compiler environment:\r
+@rem setenv /release /x86\r
+@rem -or-\r
+@rem setenv /release /x64\r
+@rem\r
+@rem Then cd to this directory and run this script.\r
\r
@if not defined INCLUDE goto :FAIL\r
\r
\r
if not exist buildvm_x86.h^\r
%DASM% -LN -o buildvm_x86.h buildvm_x86.dasc\r
+if not exist buildvm_x64win.h^\r
+ %DASM% -LN -D X64 -D X64WIN -o buildvm_x64win.h buildvm_x86.dasc\r
\r
%LJCOMPILE% /I "." /I %DASMDIR% buildvm*.c\r
%LJLINK% /out:buildvm.exe buildvm*.obj\r