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

Commit eff4017f authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar
Browse files

Disable LTO for libbluetooth_core_rs_bridge

Bug: 326115797
Bug: 286537287

We don't support cross-language LTO yet.  Disable LTO for
libbluetooth_core_rs_bridge since it is read by rustc (which uses
incompatible LLVM IR reader) when rustc creates libbluetooth_core_rs.a.

Test: m libbluetooth_core_rs with ToT clang
Change-Id: Ice3152e4265aeba2ff1f11fe4e6f18460c4e7e90
parent 934689b2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -145,6 +145,11 @@ cc_library_static {
    generated_sources: ["libbluetooth_core_rs_bridge_codegen"],
    apex_available: ["com.android.btservices"],
    min_sdk_version: "Tiramisu",
    // Bug: 286537287 this library gets linked with Rust objects but cross-language LTO
    // isn't supported yet.
    lto: {
        never: true,
    },
}

/// FFI codegen