Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 427504a

Browse files
committed
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
1 parent 4530e56 commit 427504a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libc/Android.bp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,6 +2227,12 @@ cc_library_static {
22272227
visibility: [
22282228
"//packages/modules/Virtualization/libs/libvmbase",
22292229
],
2230+
2231+
// b/358211032: This library gets linked into a rust rlib. Disable LTO
2232+
// until cross-language lto is supported.
2233+
lto: {
2234+
never: true,
2235+
},
22302236
}
22312237

22322238
// ========================================================

0 commit comments

Comments
 (0)