Skip to content

Commit 40ab0df

Browse files
authored
Merge pull request #12092 from The-OpenROAD-Project-staging/ci-copytodirectory-no-cache
bazel: run CopyToDirectory locally in CI instead of via the cache
2 parents e517dc1 + c7fa39f commit 40ab0df

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.bazelrc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@ test --build_tests_only
270270
# Use a high number of jobs and let the scheduler manage concurrency
271271
build --jobs=200
272272

273+
# CopyToDirectory staging (e.g. the hermetic toolchain's libc++ header tree,
274+
# ~1,700 files) is a sub-second local copy, but a cache hit has to check every
275+
# file in the tree. On a cold or busy disk cache that takes minutes, and every
276+
# C++ compile waits on it. Run it locally instead.
277+
build --modify_execution_info=CopyToDirectory=+no-cache
278+
273279
# Enable local disk caching to supplement the remote cache.
274280
build --disk_cache=~/.cache/bazel-disk-cache
275281
build --repository_cache=~/.cache/bazel-repository-cache

0 commit comments

Comments
 (0)