diff options
author | Mike Pall <mike> | 2025-07-24 15:45:24 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2025-07-24 15:45:24 +0200 |
commit | 871db2c84ecefd70a850e03a6c340214a81739f0 (patch) | |
tree | d87e5cf6603486171bc6d4625f4b5aa8162616b2 | |
parent | eed22e9ad925baf718186cd3931f6547fd912551 (diff) | |
download | luajit-v2.1.tar.gz luajit-v2.1.tar.bz2 luajit-v2.1.zip |
Thanks to Gil Reis. #1366
-rw-r--r-- | src/msvcbuild.bat | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/msvcbuild.bat b/src/msvcbuild.bat index 69c0c61a..d6aed170 100644 --- a/src/msvcbuild.bat +++ b/src/msvcbuild.bat | |||
@@ -5,11 +5,12 @@ | |||
5 | @rem Then cd to this directory and run this script. Use the following | 5 | @rem Then cd to this directory and run this script. Use the following |
6 | @rem options (in order), if needed. The default is a dynamic release build. | 6 | @rem options (in order), if needed. The default is a dynamic release build. |
7 | @rem | 7 | @rem |
8 | @rem nogc64 disable LJ_GC64 mode for x64 | 8 | @rem nogc64 disable LJ_GC64 mode for x64 |
9 | @rem debug emit debug symbols | 9 | @rem debug emit debug symbols |
10 | @rem amalg amalgamated build | 10 | @rem lua52compat enable extra Lua 5.2 extensions |
11 | @rem static create static lib to statically link into your project | 11 | @rem amalg amalgamated build |
12 | @rem mixed create static lib to build a DLL in your project | 12 | @rem static create static lib to statically link into your project |
13 | @rem mixed create static lib to build a DLL in your project | ||
13 | 14 | ||
14 | @if not defined INCLUDE goto :FAIL | 15 | @if not defined INCLUDE goto :FAIL |
15 | 16 | ||
@@ -101,6 +102,10 @@ buildvm -m folddef -o lj_folddef.h lj_opt_fold.c | |||
101 | @set LJDYNBUILD=%LJDYNBUILD_DEBUG% | 102 | @set LJDYNBUILD=%LJDYNBUILD_DEBUG% |
102 | @set LJLINKTYPE=%LJLINKTYPE_DEBUG% | 103 | @set LJLINKTYPE=%LJLINKTYPE_DEBUG% |
103 | :NODEBUG | 104 | :NODEBUG |
105 | @if "%1" neq "lua52compat" goto :NOLUA52COMPAT | ||
106 | @shift | ||
107 | @set LJCOMPILE=%LJCOMPILE% /DLUAJIT_ENABLE_LUA52COMPAT | ||
108 | :NOLUA52COMPAT | ||
104 | @set LJCOMPILE=%LJCOMPILE% %LJCOMPILETARGET% | 109 | @set LJCOMPILE=%LJCOMPILE% %LJCOMPILETARGET% |
105 | @set LJLINK=%LJLINK% %LJLINKTYPE% %LJLINKTARGET% | 110 | @set LJLINK=%LJLINK% %LJLINKTYPE% %LJLINKTARGET% |
106 | @if "%1"=="amalg" goto :AMALGDLL | 111 | @if "%1"=="amalg" goto :AMALGDLL |