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