Make cc_object.bzl partially link.

We are using cc_common.compile rather than cc_library because:
* we need to link, regardless of whether we have src files.
* we need our output to end in .o rather than .a

Forked from
https://android-review.googlesource.com/c/platform/build/bazel/+/1619019

Test: bazel build //bionic/...
Test: mixed build of droid
Bug: 181794963
Change-Id: If2f701e899c13751f8bfd793c1c4d46f93ec5cb4
2 files changed
tree: 5fa61862e9e0ab0a06c0227722d616cbc8d12fcb
  1. bazel_skylib/
  2. docs/
  3. examples/
  4. platforms/
  5. rules/
  6. rules_cc/
  7. scripts/
  8. bazel.BUILD
  9. bazel.sh
  10. bazel.WORKSPACE
  11. common.bazelrc
  12. darwin.bazelrc
  13. linux.bazelrc
  14. OWNERS
  15. 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.