Skip to content

Commit 2ad0129

Browse files
committed
Make sure the bazel fetch will also materialize locally.
Signed-off-by: Henner Zeller <[email protected]>
1 parent 49512d9 commit 2ad0129

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

etc/bazel-make-compilation-db.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ BANT="$($(dirname "$0")/get-bant-path.sh)"
1515
# Important to run with --remote_download_outputs=all to make sure generated
1616
# files are actually visible locally in case a remote cache (that includes
1717
# --disk_cache) is used ( https://github.com/hzeller/bazel-gen-file-issue )
18-
BAZEL_OPTS="${BAZEL_OPTS:--c opt --remote_download_outputs=all}"
18+
BAZEL_REMOTE_MATERIALIZE=--remote_download_outputs=all
19+
20+
# Bazel options
21+
BAZEL_OPTS="${BAZEL_OPTS:--c opt ${BAZEL_REMOTE_MATERIALIZE}}"
1922

2023
# Tickle some build targets to fetch all dependencies and generate files,
2124
# so that they can be seen by the users of the compilation db.
2225
# (Note, we need to limit targets to everything below //src, otherwise
2326
# it requires docker)
24-
"${BAZEL}" fetch //src/...
27+
"${BAZEL}" fetch "${BAZEL_REMOTE_MATERIALIZE}" //src/...
2528
"${BAZEL}" build -k ${BAZEL_OPTS} \
2629
@openmp//:omp_header \
2730
$("${BANT}" list-targets -g "genrule|tcl_encode|tcl_wrap_cc" -g "//src" | awk '{print $3}')

0 commit comments

Comments
 (0)