Workaround app compat issue introduced by global ThinLTO optimization

Several obfuscation libraries do not work with ThinLTO optimized bionic
linker. Given we switched on the optimization late in the 24Q3 (V)
release cycle, apply the local opt-out to avoid breaking the apps.

This workaround will be removed in the following Android release.

Test: manual
Bug: 352456802
(cherry picked from https://android-review.googlesource.com/q/commit:aede6ea8d39868c7bf358ee8ee4208a6431d5f57)
Merged-In: Ib3902b7985acce8f1c021c230b67aea821ee8dd2
Change-Id: Ib3902b7985acce8f1c021c230b67aea821ee8dd2
This commit is contained in:
Yi Kong 2024-07-16 17:35:31 +09:00 committed by Android Build Coastguard Worker
parent c5052b4283
commit a78c33a6c2

View file

@ -449,6 +449,10 @@ cc_binary {
}, },
afdo: true, afdo: true,
// FIXME: Workaround compat issue with obfuscation libraries.
// http://b/352456802
lto_O0: true,
} }
// ======================================================== // ========================================================