commit | 553a0e4ac17794a3b67e3faefc7ac70e717dd0dd | [log] [tgz] |
---|---|---|
author | adonovan <adonovan@google.com> | Wed Mar 18 13:46:47 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Mar 18 13:48:08 2020 -0700 |
tree | e912d3e33eeaa7a00de81cf53439b2493732cfd8 | |
parent | ea0f062d4ed2fd5b90e1870b6c23d796113a9786 [diff] |
bazel: add --max_computation_steps flag This change adds a --max_computation_steps=<n> flag that imposes a limit on the number of abstract computation steps to execute a single BUILD file. Its default value is zero, meaning no limit. The count is deterministic, and is retained in the package metadata. Abstract computation steps are currently eval, exec, and assign operations in the tree-walking interpreter, but in future they will mean byte code instructions; the two measures are incommensurable. There is no corresponding flag for .bzl files, but they typically do little more than execute def statements. In the Usual Benchmark, the minimum limit for success is 4.2e6 steps, but individual whoppers are readily found in Google's code base that exceed 5e8 steps. RELNOTES: The --max_computation_steps flag bounds the computation done by a BUILD file. PiperOrigin-RevId: 301658760
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md