support mingw64, according to [Add partial support for building with MingW64 GCC 4.8-SEH.](https://github.com/LuaJIT/LuaJIT/commit/1a5fd521b830a8aa17c12d2e707d167722e8c7b1)
@@ -64,8 +64,7 @@ IF(SIZEOF_VOID_P EQUAL 8)
ENDIF()
if ( WIN32 AND NOT CYGWIN )
- add_definitions ( -DLUAJIT_OS=LUAJIT_OS_WINDOWS)
- set ( LJVM_MODE coffasm )
+ set ( LJVM_MODE peobj )
elseif ( APPLE )
set ( CMAKE_EXE_LINKER_FLAGS "-pagezero_size 10000 -image_base 100000000 ${CMAKE_EXE_LINKER_FLAGS}" )
set ( LJVM_MODE machasm )
@@ -299,7 +298,7 @@ macro(add_buildvm_target _target _mode)
)
endmacro(add_buildvm_target)
-if (MSVC)
+if (WIN32)
add_buildvm_target ( lj_vm.obj peobj )
set (LJ_VM_SRC ${CMAKE_CURRENT_BINARY_DIR}/lj_vm.obj)
else ()
