2
0
mikymod 12 жил өмнө
parent
commit
c83bb3a6b6

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

@@ -34,6 +34,13 @@ OTHER DEALINGS IN THE SOFTWARE.
 namespace crown
 namespace crown
 {
 {
 
 
+#ifdef WINDOWS
+	#define LUAJIT "luajit.exe"
+#elif
+	#define LUAJIT "./luajit"
+#endif
+
+
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 LuaCompiler::LuaCompiler()
 LuaCompiler::LuaCompiler()
 	: m_luajit_blob_size(0), m_luajit_blob(NULL)
 	: 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[] =
 	const char* luajit[] =
 	{
 	{
-		"./luajit",
+		LUAJIT,
 		"-b",
 		"-b",
 		res_abs_path.c_str(),
 		res_abs_path.c_str(),
 		bc_abs_path.c_str(),
 		bc_abs_path.c_str(),