bazel-compile-commands-extractor icon indicating copy to clipboard operation
bazel-compile-commands-extractor copied to clipboard

Custom output path for compile_commands.json

Open ikar49 opened this issue 1 year ago • 1 comments

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 avatar Sep 06 '24 01:09 ikar49