aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/luajit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb
index 8cf859162..c91e6e815 100644
--- a/Library/Formula/luajit.rb
+++ b/Library/Formula/luajit.rb
@@ -23,6 +23,7 @@ class Luajit < Formula
deprecated_option "enable-debug" => "with-debug"
option "with-debug", "Build with debugging symbols"
+ option "with-52compat", "Build with additional Lua 5.2 compatibility"
def install
# 1 - Override the hardcoded gcc.
@@ -43,6 +44,8 @@ class Luajit < Formula
# The development branch of LuaJIT normally does not install "luajit".
args << "INSTALL_TNAME=luajit" if build.devel?
+ args << "XCFLAGS=-DLUAJIT_ENABLE_LUA52COMPAT" if build.with? "52compat"
+
system "make", "amalg", *args
system "make", "install", *args
# Having an empty Lua dir in Lib can screw with the new Lua setup.