0

I try to query deps with a custom flags. For example,

bazel query --define=using_cuda=true "deps(@org_tensorflow//tensorflow/core:lib)"

Bazel complained:

ERROR: Unrecognized option: --define=using_cuda=true

How could I pass a custom flag to bazel query command?

Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
highfly22
  • 1,691
  • 2
  • 10
  • 11

1 Answers1

0

bazel query doesn't support the --define flag because the command doesn't use it. Instead, use bazel cquery instead, which stands for "configurable query".

Jin
  • 12,748
  • 3
  • 36
  • 41