Re-enable LTO for linker
Clang cannot build ifunc with LTO. This is a KI: https://bugs.llvm.org/show_bug.cgi?id=46488
Move the LTO: never down to libc itself, so that we can have LTO for the
rest of linker.
Test: m GLOBAL_THINLTO=true linker
Change-Id: I483fc3944e340638a664fb390279e211c2ae224b
diff --git a/libc/Android.bp b/libc/Android.bp
index 36d2019..00904aa 100644
--- a/libc/Android.bp
+++ b/libc/Android.bp
@@ -122,6 +122,10 @@
cflags: ["-DUSE_SCUDO"],
},
},
+
+ lto: {
+ never: true,
+ },
}
libc_scudo_product_variables = {
@@ -1782,9 +1786,6 @@
"com.android.runtime",
],
- lto: {
- never: true,
- },
target: {
native_bridge: {
shared: {