commit | 7f17fbadc9ee07a636afb6083bf84c481a7cc2ab | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Jun 13 15:21:14 2023 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Jun 26 17:41:07 2023 -0700 |
tree | a482dd9e580648b785565e38682f0e12477a7c2a | |
parent | 8d38319b19e27a379ad26da1e1c93be009ef4b6b [diff] |
kleaf: defines custom clang toolchain Define a list of custom clang toolchains that are registered when --config=kleaf_internal_user_clang_toolchain is in the command line (when toolchains.bazelrc is included). The custom toolchain looks at the path at KLEAF_USER_CLANG_TOOLCHAIN_PATH, which is set by bazel.py. Caveat: This change introduces a few coupling between //prebuilts/clang/host/linux-x86/kleaf and //build/kernel/kleaf, including: * bazel.py sets KLEAF_USER_CLANG_TOOLCHAIN_PATH, consumed by user_clang_toolchain_repository() * user_clang_toolchain_repository is indirectly called by workspace.bzl These caveats are discussed in prebuilts/clang/host/linux-x86/kleaf/README.md. Bug: 253562056 Test: bazel build //common:kernel --config=fast \ --custom_clang=$(realpath prebuilts/clang/host/linux-x86/clang-r487747c) Change-Id: I8e78da7f9ccb081d0cb43fc3c33d9224aa1a8e4c
For the latest version of this doc, please make sure to visit: Android Clang/LLVM Prebuilts Readme Doc
Android Platform LLVM binutils
kleaf/versions.bzl
needs to be updated.Context Hub Runtime Environment (CHRE)
Android Rust
Stage 1 compiler
Android Studio / Android Game Development Extension
We have a public mailing list that you can subscribe to: android-llvm@googlegroups.com
See also our release notes.