commit | 2863252a837c9863fb78a41c74f8fb0fa2e8c7ff | [log] [tgz] |
---|---|---|
author | brandjon <brandjon@google.com> | Mon Jun 08 13:14:07 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jun 08 13:15:36 2020 -0700 |
tree | cf100943572e41a6ef81c7e2c0bd7991e7ca00c3 | |
parent | 232a6b8e1aa5552e00b791fcca10407d6fb2a616 [diff] |
Add inlining code path to StarlarkBuiltinsFunction, and tests StarlarkBuiltinsFunction grows a computeInline() method that accepts the calling BzlLoadFunction's InliningState and forwards it back to BzlLoadFunction#computeInline. It follows the same RecordingSkyFunctionEnvironment unwrapping convention as BzlLoadFunction uses to recursively call itself inline. CachedBzlLoadData had some assertions on how its API could be used. These appear to be overly specific and are removed. (This allows the transitive dep on builtins to be resolved in any order relative to other deps.) The tests are just clones of the existing tests with inlining turned on. Work toward #11437. RELNOTES: None PiperOrigin-RevId: 315338126
{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