diff options
| author | Anders Bergh | 2014-12-25 23:00:32 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-26 16:08:29 +0000 |
| commit | 82346feb4f6f63bcbf7c11809bf6f49a86b82d93 (patch) | |
| tree | 0538f18f8be3c2c5e8f345cd168ab6ae6dc5adbc /Library | |
| parent | b1f8c3e85a188852570c79575ee6ddb3226bfd06 (diff) | |
| download | homebrew-82346feb4f6f63bcbf7c11809bf6f49a86b82d93.tar.bz2 | |
luajit: add --with-52compat option.
Closes #35259.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/luajit.rb | 3 |
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. |
