Skip to content

Commit d0ba265

Browse files
mszarohishamhm
authored andcommitted
docs: note the code generation target used by tl run
1 parent 829266c commit d0ba265

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/src/compiler_options.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ generating 5.3-compatible code. If you install `tl` using LuaRocks, the CLI
9090
will use the Lua version you use with LuaRocks, so it will default to that
9191
Lua's version.
9292

93+
The `tl run` command loads the code it generates into the Lua VM it is running
94+
on, so unless you set `--gen-target` it targets that exact version.
95+
9396
If you require the `tl` Lua module and use the `tl.loader()`, it will do the
9497
implicit version selection, picking the right choice based on the Lua version
9598
you're running it on.

0 commit comments

Comments
 (0)