Skip to content

Commit

Permalink
feat: performance preset: nobuild_runfiles_links (#922)
Browse files Browse the repository at this point in the history
* feat: performance preset: nobuild_runfiles_links

* Update performance.bazelrc

* chore: more docs
  • Loading branch information
alexeagle authored Sep 12, 2024
1 parent 3a9720e commit 408f76c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .aspect/bazelrc/performance.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 408f76c

Please sign in to comment.