Move toolchain def to WORKSPACE

This fixes an issue with mixed builds where the toolchain location was
invalidly specified; if specified in the bazelrc, then the toolchain was
defined under the *current* repository, but would have accurately been
resolvable under @sourceroot.

A simple bazelrc fix (to sourrceroot location) would not have sufficed,
as that would break bazel builds outside of mixed-build context.

Test: Building crtbegin_so1 using mixed builds and just using bazel,
after incorporating aosp/1599675

Change-Id: I5f4815770d9f84e922688b757034d3cfb4852568
2 files changed
tree: 86b678c2e46ac17b03e35611a0a733049fa6cc5f
  1. docs/
  2. examples/
  3. platforms/
  4. rules/
  5. scripts/
  6. bazel.BUILD
  7. bazel.sh
  8. bazel.WORKSPACE
  9. common.bazelrc
  10. darwin.bazelrc
  11. linux.bazelrc
  12. OWNERS
  13. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.