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

Commit df10e08

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Disable LTO for cc libraries passed to rustc" into main
2 parents 4530e56 + 427504a commit df10e08

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)