mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 13:30:40 +00:00
Update README.md
Add `make` commandline as well.
This commit is contained in:
parent
279855df91
commit
aea1f6a718
1 changed files with 7 additions and 1 deletions
|
@ -22,7 +22,7 @@ You can download the binaries from [a recent release](https://github.com/Roblox/
|
||||||
|
|
||||||
# Building
|
# Building
|
||||||
|
|
||||||
To build Luau tools or tests yourself, you can use CMake on all platforms, or alternatively make (on Linux/macOS). For example:
|
To build Luau tools or tests yourself, you can use CMake on all platforms:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
mkdir cmake && cd cmake
|
mkdir cmake && cd cmake
|
||||||
|
@ -31,6 +31,12 @@ cmake --build . --target Luau.Repl.CLI --config RelWithDebInfo
|
||||||
cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo
|
cmake --build . --target Luau.Analyze.CLI --config RelWithDebInfo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Alternatively, on Linus/macOS you can use make:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make config=release luau luau-analyze
|
||||||
|
```
|
||||||
|
|
||||||
To integrate Luau into your CMake application projects, at the minimum you'll need to depend on `Luau.Compiler` and `Luau.VM` projects. From there you need to create a new Luau state (using Lua 5.x API such as `lua_newstate`), compile source to bytecode and load it into the VM like this:
|
To integrate Luau into your CMake application projects, at the minimum you'll need to depend on `Luau.Compiler` and `Luau.VM` projects. From there you need to create a new Luau state (using Lua 5.x API such as `lua_newstate`), compile source to bytecode and load it into the VM like this:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
|
Loading…
Reference in a new issue