Add Bazel instructions to quick-start.md (#215)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: ykiko <ykikoykikoykiko@gmail.com>
This commit is contained in:
Lucas Pingas
2025-09-01 15:17:48 +02:00
committed by GitHub
parent 85de68ca79
commit 31e4c039d2
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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