commit | bfdfa6ebfd21b388f1c91f512291c848e1a92a96 | [log] [tgz] |
---|---|---|
author | mai93 <messa@google.com> | Mon Dec 14 06:07:48 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Dec 14 06:09:18 2020 -0800 |
tree | 817d9dcc1f0f69da0b0e632e9b7b36b82b712c2f | |
parent | c8e179fc7676ec8c0f4787d470b51e9837fc9750 [diff] |
Update find runfiles manifest file logic This pull request updates the `FindManifestFileImpl` function to look for the runfiles manifest file of the binary first. If it is not found, it can use the manifest file specified in the environment variables `RUNFILES_MANIFEST_FILE` if it exists. The same logic is applied in `runfiles_src.cc` to find runfiles manifest file / directory of cc binaries. This is done to avoid using the manifest file in `RUNFILES_MANIFEST_FILE` environment variable if the binary already has its own runfiles manifest file. While, at the same time, allow using the value in the environment variables for binaries run as data-dependency that have no runfiles manifest/directory and should use the main binary's. Fixes: #10598 Closes #12650. PiperOrigin-RevId: 347370712
{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