diff options
author | 2024-07-23 11:41:01 -0700 | |
---|---|---|
committer | 2024-07-23 11:41:01 -0700 | |
commit | 81dc1e5c9812c220df348d588f0db170abbf6d87 (patch) | |
tree | fc3836fd4228c3dd2338a0032910e24742ee3eb2 | |
parent | 2140b1d82bf95e4269cd878671d24107cc465980 (diff) |
Disable LTO for cc libraries passed to rustc
Bug: http://b/336916369
Having cross-language LTO adds additional constraints in the LLVM
version used by the rust and clang toolchain. Disable LTO until
cross-language LTO is supported.
Test: make liblibfdt with ToT clang
Change-Id: I1435714a9a8643cfe55bcad774245a1093c98812
-rw-r--r-- | libfdt/Android.bp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libfdt/Android.bp b/libfdt/Android.bp index 0bf631a..c30bfa5 100644 --- a/libfdt/Android.bp +++ b/libfdt/Android.bp @@ -26,4 +26,10 @@ cc_library { "//apex_available:platform", "com.android.virt", ], + + // b/336916369: This library gets linked into a rust rlib. Disable LTO + // until cross-language lto is supported. + lto: { + never: true, + }, } |