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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user