Disable LTO for cc libraries passed to rustc
Bug: http://b/358211032
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 libvmbase with ToT clang
Change-Id: Idaa9c2fc3aabc6fc09a43999844b00d27028bcc5
diff --git a/libc/Android.bp b/libc/Android.bp
index 64785a5..b6e65ac 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -2227,6 +2227,12 @@
visibility: [
"//packages/modules/Virtualization/libs/libvmbase",
],
+
+ // b/358211032: This library gets linked into a rust rlib. Disable LTO
+ // until cross-language lto is supported.
+ lto: {
+ never: true,
+ },
}
// ========================================================