Skip to content

Commit

Permalink
Add build instructions for Homebrew.
Browse files Browse the repository at this point in the history
  • Loading branch information
ers35 committed Apr 30, 2022
1 parent 15b034c commit c3e1b2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ luastatic main.lua[1] require.lua[2] liblua.a[3] library.a[4] -I/include/lua[5]
### Generate the C file but don't compile it
`CC="" luastatic main.lua`

### Lua using Homebrew
```sh
# Install Lua and LuaRocks from Homebrew.
brew install lua luarocks
# Install luastatic from LuaRocks.
luarocks install luastatic
# Build using the Homebrew installation path.
luastatic main.lua $(brew --prefix lua)/lib/liblua.a -I$(brew --prefix lua)/include/lua
```

See another example at [Lua.Space](http://lua.space/tools/build-a-standalone-executable).

## Users
Expand Down

0 comments on commit c3e1b2e

Please sign in to comment.