Luajit 2.0.0beta9 has patches upstream that fix the compile errors
with clang and llvm, thanks to the help of the developer, Paul.
Remove the patches at 2.0.0beta10 due out at the end of April.
All changes were discussed in several emails. The plan is:
* Change the Hotfix patch to apply only to stable.
* Patch for missing /usr/include/unwind.h on 10.6.8 with clang.
* Patch src/Makefile to not call -dumpspec. Clang doesn't have it.
* Remove the instruction to the user to `sudo ln -s`.
* Remove the fails_with_llvm. It compiles against llvm 2336.
* Inreplaces should persist through version updates.
* Respect the developer's choice that optimization is best at -O2.
* Remove the hardcoded -O2 so we can set -O2 or switch to -Og.
* Override the hardcoded CC=gcc. Use ENV.cc.
* Remove the -march=i686 from CCOPT_X86. We set accurate march.
* Use args for clarity.
* For debug builds using clang, use -Og. See clang man page.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
The LuaJIT interpreter doesn't depend on the stock Lua interpreter; it
can be built entirely on its own. We also install a non-versioned link
to the interpreter, at #{HOMEBREW_PREFIX}/bin/luajit.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
luajit.org is an umbrella page for a couple related projects;
luajit.org/luajit.html is the LuaJIT-specific page. Nicer to open
up to that, in my humble opinion.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>