Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57fb6715 authored by Yi Kong's avatar Yi Kong
Browse files

Workaround breakage from LTO optimization

If enabling full LTO optimization, libbluetooth_jni crashes on start on
x86_64. Workaround by pinning libbluetooth_jni to LTO-O0, which is the
current default, making the switch no-op for it for now.

Bug: 346919576
Test: presubmit
Test: m droid
Change-Id: I1ddf2b422a6c8683dd7d530e442891efb7b0b5ce
parent bdbe9e8b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -165,6 +165,9 @@ cc_library_shared {
    ],
    min_sdk_version: "Tiramisu",
    ldflags: ["-Wl,--allow-multiple-definition"],

    // TODO(b/346919576) Workaround LTO build breakage.
    lto_O0: true,
}

cc_library {