Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/en/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ Note: This option only works when cmake's generator is set to makefile and ninja

### Bazel

TODO:
Bazel has no native support to generate a compilation database. The recommended solution is to use [bazel-compile-commands-extractor](https://github.com/hedronvision/bazel-compile-commands-extractor). After setting it up, you can generate `compile_commands.json` with:

```bash
bazel run @hedron_compile_commands//:refresh_all
```

### Visual Studio

Expand Down
6 changes: 5 additions & 1 deletion docs/zh/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

### Bazel

TODO:
Bazel 不支持直接生成编译数据库,推荐使用 [bazel-compile-commands-extractor](https://github.com/hedronvision/bazel-compile-commands-extractor)。在安装好之后,你可以这样生成 `compile_commands.json`:

```bash
bazel run @hedron_compile_commands//:refresh_all
```

### Visual Studio

Expand Down