hedronvision / bazel-compile-commands-extractor

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

How to specific startup option? #220

Closed neko-para closed 2 months ago

neko-para commented 2 months ago

Currently, there seems no way to apply options between bazel and [cmd], only after [cmd] is available (e.g. -- --config debug).

My project has multiple bazelrc file, and I'd use bazel --bazelrc=xxx.bazelrc build //:my_target to build it. Thus refresh_compile_commands doesn't know this and failed to find the proper bazelrc.

neko-para commented 2 months ago

Sorry, seems to be the dup of #170