From 408f76cb9ae1403c42014a5f2b02738cfd576507 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 12 Sep 2024 14:55:04 -0700 Subject: [PATCH] feat: performance preset: nobuild_runfiles_links (#922) * feat: performance preset: nobuild_runfiles_links * Update performance.bazelrc * chore: more docs --- .aspect/bazelrc/performance.bazelrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.aspect/bazelrc/performance.bazelrc b/.aspect/bazelrc/performance.bazelrc index acc48c59e..fa364a465 100644 --- a/.aspect/bazelrc/performance.bazelrc +++ b/.aspect/bazelrc/performance.bazelrc @@ -18,3 +18,12 @@ build --experimental_reuse_sandbox_directories # author. # Docs: https://bazel.build/reference/command-line-reference#flag--legacy_external_runfiles build --nolegacy_external_runfiles + +# Avoid creating a runfiles tree for binaries or tests until it is needed. +# Docs: https://bazel.build/reference/command-line-reference#flag--build_runfile_links +# See https://github.com/bazelbuild/bazel/issues/6627 +# +# This may break local workflows that `build` a binary target, then run the resulting program +# outside of `bazel run`. In those cases, the script will need to call +# `bazel build --build_runfile_links //my/binary:target` and then execute the resulting program. +build --nobuild_runfile_links