Skip to content

Commit

Permalink
document TVMJIT_PREFIX and TVMJIT_MULTILIB
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidborisenko committed Sep 25, 2014
1 parent 807888b commit 543126e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,18 @@ $ git clone --recursive https://github.com/richardhundt/shine.git
$ make && sudo make install
```

This will install two executables `shinec` and `shine`. The
`shinec` executable is just the compiler and has the following
Standard `package.path` and `package.cpath` values set up by virtual machine
could be customized with passing `TVMJIT_PREFIX` and `TVMJIT_MULTILIB`
parameters to `make`. It could be useful for accessing Lua libraries installed
by standard Linux distro way. For example, on Debian following parameter
values could be used:

```
$ make TVMJIT_PREFIX=/usr TVMJIT_MULTILIB="lib/$(gcc -print-multiarch)" && sudo make install
```

This will install two executables `shinec` and `shine` (along with standard
library). The `shinec` executable is just the compiler and has the following
usage:

```
Expand Down

0 comments on commit 543126e

Please sign in to comment.