mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 06:15:44 +08:00
Update README.md
Add `make` commandline as well.
This commit is contained in:
parent
279855df91
commit
aea1f6a718
@ -22,7 +22,7 @@ You can download the binaries from [a recent release](https://github.com/Roblox/
|
||||
|
||||
# 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
|
||||
mkdir cmake && cd cmake
|
||||
@ -31,6 +31,12 @@ cmake --build . --target Luau.Repl.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:
|
||||
|
||||
```cpp
|
||||
|
Loading…
Reference in New Issue
Block a user