feat: performance preset: nobuild_runfiles_links (#922)

* feat: performance preset: nobuild_runfiles_links

* Update performance.bazelrc

* chore: more docs
This commit is contained in:
Alex Eagle 2024-09-12 14:55:04 -07:00 committed by GitHub
parent 3a9720ec61
commit 408f76cb9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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