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

Commit 9a12e1d7 authored by Frederick Mayle's avatar Frederick Mayle Committed by Gerrit Code Review
Browse files

Merge "libbinder: export fewer symbols for non-vendor builds" into main

parents a770e9ba f785b796
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -267,7 +267,20 @@ cc_defaults {
        "-Wunused-const-variable",
        "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION",
        "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
        // Hide symbols by default and set the BUILDING_LIBBINDER macro so that
        // the code knows to export them.
        "-fvisibility=hidden",
        "-DBUILDING_LIBBINDER",
    ],

    target: {
        vendor: {
            // Trimming the exported symbols reveals a bug in vendor code, so
            // disable it for the vendor variant for now. http://b/349657329
            // TODO: Fix the issue and remove this override.
            cflags: ["-fvisibility=default"],
        },
    },
}

cc_defaults {