Skip to content

Commit 2ef8be7

Browse files
committed
[dv] Add bazel opts to cquery
This is needed on master branch only because of darjeeling, otherwise cquery would not find darjeeling artefacts.
1 parent 1ea3bed commit 2ef8be7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

util/py/scripts/build_sw_collateral_for_sim.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,12 @@ def _deploy_software_collateral(args) -> None:
280280
bazel_runner = BazelRunner()
281281

282282
bazel_runner.cmd = "./bazelisk.sh"
283-
bazel_runner.build_opts = args.sw_build_opts + [
283+
external_opts = list(set(args.sw_build_opts))
284+
bazel_runner.build_opts = external_opts + [
284285
"--define",
285286
"DISABLE_VERILATOR_BUILD=true",
286287
]
288+
bazel_runner.cquery_opts_common += external_opts
287289

288290
# In the air-gapped environment, the following environment variable will exist.
289291
if ENV.get("BAZEL_PYTHON_WHEELS_REPO"):

0 commit comments

Comments
 (0)