Skip to content

Commit

Permalink
docs: update BUILD.md to use ccache and ninja
Browse files Browse the repository at this point in the history
Signed-off-by: black-desk <me@black-desk.cn>
  • Loading branch information
black-desk committed Mar 6, 2024
1 parent f43ff3d commit 2c3e586
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ sudo cmake --install build-release
For developing or debugging linglong:

```bash

# Use ccache and ninja if available.
# You might want add this to the rc file of your shell.
export CMAKE_CXX_COMPILER_LAUNCHER=="$(command -v ccache 2>/dev/null)"
if command -v ninja &>/dev/null; then
export CMAKE_GENERATOR="Ninja"
fi

# configure, build and test
cmake --workflow --preset debug

Expand Down
2 changes: 2 additions & 0 deletions BUILD.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ sudo cmake --install build-release
如果你想开发或调试玲珑:

```bash
export CMAKE_CXX_COMPILIER_LAUNCHER="$(command -v ccache)"

# 配置,构建然后运行测试
cmake --workflow --preset debug

Expand Down

0 comments on commit 2c3e586

Please sign in to comment.