OSDN Git Service

Workaround global ThinLTO breakage
authorYi Kong <yikong@google.com>
Sun, 11 Oct 2020 16:31:18 +0000 (00:31 +0800)
committerYi Kong <yikong@google.com>
Sun, 11 Oct 2020 16:33:40 +0000 (00:33 +0800)
The device does not boot with global ThinLTO enabled for linkerconfig.
Disable LTO for it to workaround the issue.

Test: GLOBAL_THINLTO=true m
Test: boot
Bug: 170573443
Change-Id: Id5b7e11c2c4b495b6b0da35dc774b60bcd0543af

Android.bp

index 2f97a7a..d403311 100644 (file)
@@ -123,6 +123,12 @@ cc_binary {
             stl: "c++_static",  // Link libc++ statically.
         },
     },
+
+    // Device does not boot when global ThinLTO is enabled for linkerconfig.
+    // http://b/170573443
+    lto: {
+        never: true,
+    },
 }
 
 cc_test {