bakpakin / Fennel

Lua Lisp Language
https://fennel-lang.org
MIT License
2.42k stars 124 forks source link

Add Makefile target to build Fennel with LuaJIT #454

Closed Khachig closed 1 year ago

Khachig commented 1 year ago

This change adds a Makefile target to build a Fennel binary that runs directly on top of LuaJIT. This enables very speedy scripts by default and also allows the use of the LuaJIT C FFI within Fennel programs.

technomancy commented 1 year ago

Thanks; this looks useful.

I would prefer it if this could be done with the existing rules by just changing the URL and other parameters, but it looks like that's not viable since luajit's build doesn't accept the same CC_OPTS.

I can merge this, but can you change it first so that it uses a tag instead of just building whatever's latest on git? Maybe using curl with a tarball of the release so it's more consistent with the existing flow?