mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix: Fix Ninja build for LuaJit and Lua51 (#303)
This commit is contained in:
@@ -34,11 +34,9 @@
|
||||
#include <cstdint>
|
||||
#include "ElunaCompat.h"
|
||||
|
||||
extern "C" {
|
||||
#include "lua.h"
|
||||
#include "lualib.h"
|
||||
#include "lauxlib.h"
|
||||
}
|
||||
#if LUA_VERSION_NUM == 501 && !defined(luaL_setfuncs)
|
||||
#define luaL_setfuncs(L, l, n) luaL_register(L, NULL, l)
|
||||
#endif
|
||||
|
||||
#define MAR_TREF 1
|
||||
#define MAR_TVAL 2
|
||||
|
||||
@@ -138,7 +138,7 @@ if (UNIX OR APPLE)
|
||||
add_custom_command(
|
||||
OUTPUT ${LUAJIT_LIB_PATH}
|
||||
# COMMAND $(MAKE) -C ${LUA_BIN_FOLDER} PREFIX=${LUA_INSTALL_PATH}
|
||||
COMMAND $(MAKE) -C ${LUA_BIN_FOLDER} install PREFIX=${LUA_INSTALL_PATH} "CFLAGS=-O2 -fomit-frame-pointer -Wno-empty-body -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-sign-compare -Wno-string-plus-int"
|
||||
COMMAND make -C ${LUA_BIN_FOLDER} install PREFIX=${LUA_INSTALL_PATH} "CFLAGS=-O2 -fomit-frame-pointer -Wno-empty-body -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-sign-compare -Wno-string-plus-int"
|
||||
)
|
||||
# endif()
|
||||
add_custom_target(luajit_target DEPENDS ${LUAJIT_LIB_PATH})
|
||||
|
||||
Reference in New Issue
Block a user