commit | dcc5b227fa008464f43790c2a783dc008345bec7 | [log] [tgz] |
---|---|---|
author | Googler <hvd@google.com> | Sat Sep 10 03:32:02 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Sep 10 03:33:14 2022 -0700 |
tree | 3dd8495e7b81de1561d690d1efe16e7bcf897008 | |
parent | 202ad1d60fba27564342460073d348c74749ae4b [diff] |
Optimize `cc_helper.is_valid_shared_library_extension()` I've added an additional method for cases where the artifact is available, and renamed the existing method for clarity (there is one caller where we use a label name as input) When the artifact is available, we check for shared library artifact extensions in a list instead of repeated `string.endswith()` calls. Calling a module API function (even a noop one) appears to be much slower than executing a pure starlark operation [1] PiperOrigin-RevId: 473443780 Change-Id: I7b9d7c7c14046cb0118303bc2aae0d8128400ca4
{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:
To report a security issue, please email security@bazel.build with a description of the issue, the steps you took to create the issue, affected versions, and, if known, mitigations for the issue. Our vulnerability management team will respond within 3 working days of your email. If the issue is confirmed as a vulnerability, we will open a Security Advisory. This project follows a 90 day disclosure timeline.
See CONTRIBUTING.md