]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Enable build for x64 interpreter on WIN64.
authorMike Pall <mike>
Sun, 17 Jan 2010 19:33:13 +0000 (20:33 +0100)
committerMike Pall <mike>
Sun, 17 Jan 2010 19:33:13 +0000 (20:33 +0100)
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.

src/msvcbuild.bat

index 6ea80219ee380f355a827a9d6a4d452d202e77ac..200c651f46951f7672ec58c91015ecb1e7acd7c6 100644 (file)
@@ -1,8 +1,15 @@
 @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
@@ -16,6 +23,8 @@
 \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