tag | e864f25c3b8f1aac6d4cb0d473f5891a8a09c665 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Jun 09 15:39:22 2021 -0700 |
object | 1d9e9c483f1005b930c42dc85c1768bd1a9d57e3 |
Android S Beta 2 (SPB2.210513.007)
commit | 1d9e9c483f1005b930c42dc85c1768bd1a9d57e3 | [log] [tgz] |
---|---|---|
author | Jingwen Chen <jingwen@google.com> | Fri May 07 10:08:52 2021 +0000 |
committer | Jingwen Chen <jingwen@google.com> | Thu May 13 08:13:09 2021 +0000 |
tree | 0e3df7e90ea8539bb4cec4dc22be6a34cd6eb998 | |
parent | 537e01a6ff78760ee5b69597efdbc47bc721058d [diff] |
bp2build/cc_toolchain: use exported clang/lld flags from Soong. This CL removes a bunch of hardcoded flags from many moons ago, and replace them with exported flags from clang.go and global.go in Soong. This CL also handles host/device distinctions using target_platform_has_constraint [1] to determine if a target_platform constraint for the android_cc_toolchain is a host or device, to load the right flag set from the generated cc vars file. This CL also ensures that the list of non-overridable cflags, which currently exclude some warnings from -Wall, are always set after the user-provided copts/cxxopts. This will reduce the command line differences between Bazel and Soong cpp/c compile, assemble, link actions. https://github.com/bazelbuild/proposals/blob/master/designs/2019-11-11-target-platform-constraints.md#proposal-a-check-method-that-takes-a-constraint-value-label Bug: 187857770 Fixes: 187857770 Test: TH Change-Id: I120f42c94ddadd374cb97977da71943b0bf1b9e1
For the latest version of this doc, please make sure to visit: Android Clang/LLVM Prebuilts Readme Doc
Android Platform LLVM binutils
Context Hub Runtime Environment (CHRE)
Android Rust
Stage 1 compiler
We have a public mailing list that you can subscribe to: android-llvm@googlegroups.com
See also our release notes.