From 82346feb4f6f63bcbf7c11809bf6f49a86b82d93 Mon Sep 17 00:00:00 2001 From: Anders Bergh Date: Thu, 25 Dec 2014 23:00:32 +0100 Subject: luajit: add --with-52compat option. Closes #35259. Signed-off-by: Mike McQuaid --- Library/Formula/luajit.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Library/Formula') 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. -- cgit v1.2.3