From 97cf85e3ad4f3c109adc8a6e0f1ed4163876178b Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Wed, 4 Jun 2014 13:49:52 -0400 Subject: Allow using Luajit on 64-bit systems (#8641) 64-bit luajit doesn't support lua_newstate or custom allocators, so don't try to use one there. However, give a warning if this happens with a webtiles or dgamelaunch build, because servers probably do want the memory throttling. --- crawl-ref/source/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/Makefile') diff --git a/crawl-ref/source/Makefile b/crawl-ref/source/Makefile index 17eed16f72..286110a5b4 100644 --- a/crawl-ref/source/Makefile +++ b/crawl-ref/source/Makefile @@ -622,6 +622,10 @@ ifndef BUILD_LUA LIBS += $(shell $(PKGCONFIG) $(LUA_PACKAGE) --libs) endif +ifdef USE_LUAJIT +DEFINES_L += -DUSE_LUAJIT +endif + ifndef BUILD_SQLITE ifeq ($(shell grep -q sqlite3_prepare $(SQLITE_INCLUDE_DIR)/sqlite3.h 2>/dev/null && echo yes),yes) # INCLUDES_L += -isystem $(SQLITE_INCLUDE_DIR) -- cgit v1.2.3-54-g00ecf