add new option LUAJIT_DISABLE_GC64 for luajit
ref:
@@ -34,7 +34,10 @@ option(LUAJIT_ENABLE_LUA52COMPAT "Enable Lua 5.2 compatibility." ON)
option(LUAJIT_DISABLE_JIT "Disable JIT." OFF)
option(LUAJIT_CPU_SSE2 "Use SSE2 instead of x87 instructions." ON)
option(LUAJIT_CPU_NOCMOV "Disable NOCMOV." OFF)
-MARK_AS_ADVANCED(LUAJIT_DISABLE_FFI LUAJIT_ENABLE_LUA52COMPAT LUAJIT_DISABLE_JIT LUAJIT_CPU_SSE2 LUAJIT_CPU_NOCMOV)
+option(LUAJIT_DISABLE_GC64 "Disable GC64" OFF)
+MARK_AS_ADVANCED(LUAJIT_DISABLE_FFI LUAJIT_ENABLE_LUA52COMPAT
+ LUAJIT_DISABLE_GC64
+ LUAJIT_DISABLE_JIT LUAJIT_CPU_SSE2 LUAJIT_CPU_NOCMOV)
IF(LUAJIT_DISABLE_FFI)
ADD_DEFINITIONS(-DLUAJIT_DISABLE_FFI)
@@ -44,6 +47,10 @@ IF(LUAJIT_ENABLE_LUA52COMPAT)
ADD_DEFINITIONS(-DLUAJIT_ENABLE_LUA52COMPAT)
ENDIF()
+IF(LUAJIT_DISABLE_GC64)
+ ADD_DEFINITIONS(-DLUAJIT_DISABLE_GC64)
+ENDIF()
+
IF(LUAJIT_DISABLE_JIT)
ADD_DEFINITIONS(-DLUAJIT_DISABLE_JIT)
ENDIF()
