Skip to content

Commit 6056043

Browse files
committed
Don't enable LTO on host
We don't care about performance that much on host, turning LTO optimization off saves some build time. Test: presubmit Change-Id: Ia02d76fc42c04c9833ba4a673c8ccf37a0ee70a9
1 parent d925ec6 commit 6056043

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

libs/binder/Android.bp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ cc_defaults {
159159
"UtilsHost.cpp",
160160
],
161161
},
162+
android: {
163+
lto: {
164+
thin: true,
165+
},
166+
},
162167
},
163168

164169
aidl: {
@@ -219,9 +224,6 @@ cc_defaults {
219224
"-performance-move-const-arg", // b/273486801
220225
"portability*",
221226
],
222-
lto: {
223-
thin: true,
224-
},
225227
}
226228

227229
cc_library_headers {

0 commit comments

Comments
 (0)