Skip to content

Purpose of the spec directory? How to build a stanalonetl binary? #471

Answered by hishamhm
parke asked this question in Q&A
Discussion options

You must be logged in to vote

What is the purpose of the files in the spec directory?

These are tests, which you can run with luarocks test.

How do I build a copy of this standalone binary executable from source?

This particular binary shipped is built using a custom script which I have not published. But the tl compiler is a pure-Lua application, which depends on other modules (argparse and luafilesystem). There are various tools that can amalgamate multiple Lua sources into a single executable; https://github.com/jirutka/luapak/, for example, is one of them, and it should be able to produce equivalent results.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by parke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants