commit | a21571067e5c2a06cdccbc537eb3bb5300bf65a2 | [log] [tgz] |
---|---|---|
author | jmmv <jmmv@google.com> | Thu Feb 21 04:24:01 2019 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Feb 21 04:25:11 2019 -0800 |
tree | 973906b8427d27e3b0064b72fb6b682b3218c8c7 | |
parent | d5767c8e7fe9ad6b6193a7746d7b9c67028dab54 [diff] |
Make PrepareEnvironmentForJvm() explicitly inherit environment variables. The map returned by PrepareEnvironmentForJvm() previously represented a "delta" to apply to the current environment. This was used to modify the environment surrounding fork/execv calls because we could not pass an envp to execv. However, when using the resulting map to create the envp value of a call like posix_spawn, we must be exhaustive and list all variables we expect the subprocess to have. And as we are going to be using posix_spawn, we need to make this happen, so change PrepareEnvironmentForJvm() to make the returned map exhaustive. Prerequisite change to address https://github.com/bazelbuild/bazel/issues/7446 because of the need to switch to posix_spawn. RELNOTES: None. PiperOrigin-RevId: 234971246
{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.