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

Commit bf2aa784 authored by Yi Kong's avatar Yi Kong
Browse files

Use the newly introduced whole_program_vtables property

... instead of manually adding -fwhole-program-vtables cflag.

Test: build
Bug: 169004486
Change-Id: Ie04b0ef3d5621b8304b6c04f92a00411cb0ea3ec
parent f1d96134
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,11 +42,11 @@ cc_defaults {
    defaults: ["libgpuservice_defaults"],
    cflags: [
        "-fvisibility=hidden",
        "-fwhole-program-vtables", // requires ThinLTO
    ],
    lto: {
        thin: true,
    },
    whole_program_vtables: true, // Requires ThinLTO
}

filegroup {
+1 −1
Original line number Diff line number Diff line
@@ -108,11 +108,11 @@ cc_defaults {
    defaults: ["libsurfaceflinger_defaults"],
    cflags: [
        "-fvisibility=hidden",
        "-fwhole-program-vtables", // requires ThinLTO
    ],
    lto: {
        thin: true,
    },
    whole_program_vtables: true, // Requires ThinLTO
    // TODO(b/131771163): Fix broken fuzzer support with LTO.
    sanitize: {
        fuzzer: false,