Skip to content

Commit e9dfe77

Browse files
committed
Disable LTO for static linking with Rust-generated code
This eliminates the following error that was encountered when testing the TOT LLVM build with aosp/main. ``` error: failed to build archive: 'input_cxx_bridge_generated.o': Unknown attribute kind (91) (Producer: 'LLVM19.0.0' Reader: 'LLVM 17.0.6') ``` Bug: http://b/328705924 Test: LLVM_PREBUILTS_VERSION=clang-dev LLVM_RELEASE_VERSION=19 LLVM_NEXT=true THINLTO_USE_MLGO=false mmm frameworks/native/libs/input/rust/ Change-Id: Ic08d289baaeb1a72b7f1c26e886670a26afdac65
1 parent 277c8f7 commit e9dfe77

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libs/input/Android.bp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ cc_library_static {
153153
],
154154
generated_sources: ["libinput_cxx_bridge_code"],
155155

156+
lto: {
157+
never: true,
158+
},
159+
156160
shared_libs: [
157161
"libbase",
158162
],

0 commit comments

Comments
 (0)