From 0ffd06aba8de49ce751e5e9bcf7aa71bd42403f1 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 30 Nov 2010 21:56:57 +0100 Subject: FFI: Add define to disable the FFI library. --- src/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 87fddbad..3b9d202a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -88,6 +88,12 @@ BUILDMODE= mixed # recompile with "make clean", followed by "make". XCFLAGS= # +# Permanently disable the FFI extension to reduce the size of the LuaJIT +# executable. But please consider that the FFI library is compiled-in, +# but NOT loaded by default. It only allocates any memory, if you actually +# make use of it. +#XCFLAGS+= -DLUAJIT_DISABLE_FFI +# # Enable some upwards-compatible features from Lua 5.2 that are unlikely # to break existing code (e.g. __pairs). Note that this does not provide # full compatibility with Lua 5.2 at this time. -- cgit v1.2.3-55-g6feb