Only enable rpath flag for host.

Bug: 219742303
Test: Manually tested using aquery to verify the rpath arguments.
1. Run b aquery --platforms=//build/bazel/platforms:linux_x86_64 bionic/benchmarks/spawn/bench_noop_unstripped
   and observe the follwing lines are in the output:
    '-Wl,-rpath,$ORIGIN/../../../_solib_linux_glibc_x86_64/_U_S_Sexternal_Slibcxx_Clibc++___Uexternal_Slibcxx' \
    '-Wl,-rpath,$ORIGIN/../lib64' \
    '-Wl,-rpath,$ORIGIN/lib64' \
2. Run b aquery --platforms=//build/bazel/platforms:android_x86 bionic/benchmarks/spawn/bench_noop_unstripped
   and observe that no rpath present in the output.

Change-Id: I7ac414b5e8ebb88291cbec48b3f8df567df02d69
1 file changed
tree: 2d04d7ea530526692833c720f4f08b6e4fdff4ac
  1. clang-3289846/
  2. clang-r416183b/
  3. clang-r433403/
  4. clang-r437112b/
  5. clang-r445002/
  6. clang-stable/
  7. llvm-binutils-stable/
  8. profiles/
  9. soong/
  10. .gitignore
  11. Android.bp
  12. BINUTILS_KERNEL_DEPRECATION.md
  13. BUILD.bazel
  14. cc_toolchain_config.bzl
  15. cc_toolchain_constants.bzl
  16. cc_toolchain_features.bzl
  17. CleanSpec.mk
  18. GCC_4_9_DEPRECATION.md
  19. go.mod
  20. METADATA
  21. OWNERS
  22. README.md
  23. RELEASE_NOTES.md
README.md

Android Clang/LLVM Prebuilts

For the latest version of this doc, please make sure to visit: Android Clang/LLVM Prebuilts Readme Doc

LLVM Users

Prebuilt Versions

More Information

We have a public mailing list that you can subscribe to: android-llvm@googlegroups.com

See also our release notes.