|
@@ -5,11 +5,12 @@
|
|
@rem Then cd to this directory and run this script. Use the following
|
|
@rem Then cd to this directory and run this script. Use the following
|
|
@rem options (in order), if needed. The default is a dynamic release build.
|
|
@rem options (in order), if needed. The default is a dynamic release build.
|
|
@rem
|
|
@rem
|
|
-@rem nogc64 disable LJ_GC64 mode for x64
|
|
|
|
-@rem debug emit debug symbols
|
|
|
|
-@rem amalg amalgamated build
|
|
|
|
-@rem static create static lib to statically link into your project
|
|
|
|
-@rem mixed create static lib to build a DLL in your project
|
|
|
|
|
|
+@rem nogc64 disable LJ_GC64 mode for x64
|
|
|
|
+@rem debug emit debug symbols
|
|
|
|
+@rem lua52compat enable extra Lua 5.2 extensions
|
|
|
|
+@rem amalg amalgamated build
|
|
|
|
+@rem static create static lib to statically link into your project
|
|
|
|
+@rem mixed create static lib to build a DLL in your project
|
|
|
|
|
|
@if not defined INCLUDE goto :FAIL
|
|
@if not defined INCLUDE goto :FAIL
|
|
|
|
|
|
@@ -101,6 +102,10 @@ buildvm -m folddef -o lj_folddef.h lj_opt_fold.c
|
|
@set LJDYNBUILD=%LJDYNBUILD_DEBUG%
|
|
@set LJDYNBUILD=%LJDYNBUILD_DEBUG%
|
|
@set LJLINKTYPE=%LJLINKTYPE_DEBUG%
|
|
@set LJLINKTYPE=%LJLINKTYPE_DEBUG%
|
|
:NODEBUG
|
|
:NODEBUG
|
|
|
|
+@if "%1" neq "lua52compat" goto :NOLUA52COMPAT
|
|
|
|
+@shift
|
|
|
|
+@set LJCOMPILE=%LJCOMPILE% /DLUAJIT_ENABLE_LUA52COMPAT
|
|
|
|
+:NOLUA52COMPAT
|
|
@set LJCOMPILE=%LJCOMPILE% %LJCOMPILETARGET%
|
|
@set LJCOMPILE=%LJCOMPILE% %LJCOMPILETARGET%
|
|
@set LJLINK=%LJLINK% %LJLINKTYPE% %LJLINKTARGET%
|
|
@set LJLINK=%LJLINK% %LJLINKTYPE% %LJLINKTARGET%
|
|
@if "%1"=="amalg" goto :AMALGDLL
|
|
@if "%1"=="amalg" goto :AMALGDLL
|