diff options
Diffstat (limited to 'src')
| -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 |
