hedronvision / bazel-compile-commands-extractor

Goal: Enable awesome tooling for Bazel users of the C language family.
Other
696 stars 112 forks source link

Custom output path for compile_commands.json #217

Open ikar49 opened 2 months ago

ikar49 commented 2 months ago

Hello! Thank you for your project!

How about the possibility to set a custom path for the generated compile-commands.json? Clangd supports this with the --compile-commands-dir parameter.

Motivation:

  1. We mount source directory by network sometime and want not to create a big files in this (size of our compile_commands.json around 5 Gib).
  2. We have a lot of projects in our monorepository and some of them use the root of monorepo as workspace root. Thus, compile_commands.json of these projects override each other.
ikar49 commented 2 months ago

How I can see, PR #210 can solve our problem