mikymod 12 лет назад
Родитель
Сommit
c83bb3a6b6
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      engine/compilers/lua/LuaCompiler.cpp

+ 8 - 1
engine/compilers/lua/LuaCompiler.cpp

@@ -34,6 +34,13 @@ OTHER DEALINGS IN THE SOFTWARE.
 namespace crown
 {
 
+#ifdef WINDOWS
+	#define LUAJIT "luajit.exe"
+#elif
+	#define LUAJIT "./luajit"
+#endif
+
+
 //-----------------------------------------------------------------------------
 LuaCompiler::LuaCompiler()
 	: m_luajit_blob_size(0), m_luajit_blob(NULL)
@@ -57,7 +64,7 @@ size_t LuaCompiler::compile_impl(Filesystem& fs, const char* resource_path)
 
 	const char* luajit[] =
 	{
-		"./luajit",
+		LUAJIT,
 		"-b",
 		res_abs_path.c_str(),
 		bc_abs_path.c_str(),