commit | bf1b3535c6ce710be036308e07d740adf1b5dea7 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Thu Feb 08 11:02:20 2024 -0800 |
committer | Yifan Hong <elsk@google.com> | Thu Feb 15 14:26:35 2024 -0800 |
tree | 168988bc6e3e9de21c6cb4130001d3965f720e2b | |
parent | dcbde2b3359b679ec144bf81f50d35a5f88bb920 [diff] |
kleaf: Add -stdlib=libc++ -static-libstdc++ to host cc_* rules. This is to ensure host toolchain can link to libc++ to build C++ code. For compilation, this changes C++ code only; this has no effect on C / assembly code. For linking, this affects object files built from both C / assembly code and C++ code. This does not affect Kbuild, because feature kleaf-host-cpp-ldflags and kleaf-host-cpp-flags are disabled for kernel_* rules. Using -static-libstdc++ removes the complication of adding libc++ to runfiles for cc_binary, adjusting rpath, and packaging libc++ along with the cc_binary when it is mentioned in a pkg_* or copy_to_dist_dir rule. Test: TH Bug: 324206397 Change-Id: I5893c265c4d83ae4fc261e24d5e7cefceafbebc4 Merged-In: I5893c265c4d83ae4fc261e24d5e7cefceafbebc4
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.