commit | dd41ff012531ffa0d970d6e1594bf23588ccd831 | [log] [tgz] |
---|---|---|
author | aldersondrive <alderson@google.com> | Tue Feb 04 11:00:27 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Feb 04 11:01:22 2020 -0800 |
tree | e8e99bc53621d5415085a2ed83f387a597449a2a | |
parent | 43337bba0a966d6f1ee148db5bc21b81649afef4 [diff] |
On OpenBSD, search the PATH to find the Bazel executable. Searching the `PATH` is the only feasible way to find the executable on OpenBSD when `argv[0]` is not an absolute path or a relative path. This change resolves a TODO. This change moves a preexisting `Which` function for searching the `PATH` out of `blaze_util_linux.cc` and into `blaze_util_posix.cc`, so that the Linux code and the BSD code can share this function. In my testing on OpenBSD 6.6-current, a bootstrap build of Bazel succeeds and the resulting `bazel` binary can find itself on the `PATH`. (One caveat: For the bootstrap build to succeed, I had to manually apply the unrelated change in https://github.com/bazelbuild/bazel/pull/10639, since it's not merged yet.) This change is part of the OpenBSD port in https://github.com/bazelbuild/bazel/issues/10250. @jmmv FYI. Closes #10691. PiperOrigin-RevId: 293183553
{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