Browse Source

Lua: define LuaJit and LuaVer in common.ml

Justin Donaldson 9 years ago
parent
commit
3fbe34eabc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/typing/common.ml

+ 4 - 0
src/typing/common.ml

@@ -205,6 +205,8 @@ module Define = struct
 		| JsUnflatten
 		| JsUnflatten
 		| KeepOldOutput
 		| KeepOldOutput
 		| LoopUnrollMaxCost
 		| LoopUnrollMaxCost
+	        | LuaVer
+	        | LuaJit
 		| Macro
 		| Macro
 		| MacroTimes
 		| MacroTimes
 		| NekoSource
 		| NekoSource
@@ -294,6 +296,8 @@ module Define = struct
 		| JsUnflatten -> ("js_unflatten","Generate nested objects for packages and types")
 		| JsUnflatten -> ("js_unflatten","Generate nested objects for packages and types")
 		| KeepOldOutput -> ("keep_old_output","Keep old source files in the output directory (for C#/Java)")
 		| KeepOldOutput -> ("keep_old_output","Keep old source files in the output directory (for C#/Java)")
 		| LoopUnrollMaxCost -> ("loop_unroll_max_cost","Maximum cost (number of expressions * iterations) before loop unrolling is canceled (default 250)")
 		| LoopUnrollMaxCost -> ("loop_unroll_max_cost","Maximum cost (number of expressions * iterations) before loop unrolling is canceled (default 250)")
+		| LuaJit -> ("lua_jit","Enable the jit compiler for lua (version 5.2 only)")
+		| LuaVer -> ("lua_ver","The lua version to target")
 		| Macro -> ("macro","Defined when code is compiled in the macro context")
 		| Macro -> ("macro","Defined when code is compiled in the macro context")
 		| MacroTimes -> ("macro_times","Display per-macro timing when used with --times")
 		| MacroTimes -> ("macro_times","Display per-macro timing when used with --times")
 		| NetVer -> ("net_ver", "<version:20-45> Sets the .NET version to be targeted")
 		| NetVer -> ("net_ver", "<version:20-45> Sets the .NET version to be targeted")