commit | 13ad6f495c61a6dc9c18141058e2cefffeb44367 | [log] [tgz] |
---|---|---|
author | michajlo <michajlo@google.com> | Thu Jun 06 13:26:15 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jun 06 13:27:58 2019 -0700 |
tree | c978bdc164e44d79efa130efb54d7f3c830bb07c | |
parent | f644c1ecddbf8a09ad19bb0c99d3e9863268c050 [diff] |
Only construct startup args once They _should_ always be the same, so no need to recreate them every place we use them. Instead construct them once and pass them along to where they're needed. This a) saves us from threading along unnecessary state just for the sake of creating the argument array and b) provides a (mostly) clear point where StartupOptions isn't/can't be modified. I'd like to enforce (b) further by pushing everything after the point-of-no-more-possible-mutations into a separate method with StartupOptions marked const, but I don't think that fits in in this change. PiperOrigin-RevId: 251914512
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds 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
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.