commit | c6ec22f94faaf1320f576d5658a106483b2bf19f | [log] [tgz] |
---|---|---|
author | Mark Zeren <mzeren@vmware.com> | Tue Oct 16 10:15:38 2018 -0700 |
committer | Copybara-Service <copybara-piper@google.com> | Tue Oct 16 10:17:29 2018 -0700 |
tree | 50c1539b345823e7e17ee35aae94fb327a7cc465 | |
parent | a78722d12b0a71f449bc003b6f3e099a0f95d205 [diff] |
cc_configure: Remove hardcoded link option "-B/usr/bin" Putting -B/usr/bin on the link line breaks use of custom C/C++ toolchain since support binaries such as ld, as, etc., will incorrectly "leak" to the build machine. Fixes https://github.com/bazelbuild/bazel/issues/5634 Archeaology: It looks like this logic was originally added here: 810d60a7dc Apr 22 2016 dmarting@google.com "cc_configure: Add -B to compiler flag too" .. and that that was done to get Tensor Flow building on some (but failing on other?) versions of RedHat. https://github.com/bazelbuild/bazel/issues/1152. This may have also "fixed" the hombrew builds for https://github.com/bazelbuild/bazel/issues/1177. Testing Done: * Building envoy on older Centos host using non-host crosscompiler. Build fails without the fix and succeeds with the fix. * bazel test //src/test/java/com/google/devtools/build/lib:all 1 flaky test failed before and after: bazel test //src/test/java/com/google/devtools/build/lib:vfs_test Closes #6360. PiperOrigin-RevId: 217338797
{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.