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

Commit ffb5375c authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Use arm instruction set with clang 7.0 LTO

* surfaceflinger.so uses LTO.
  clang 7.0 LTO inlined more code and some references
  are too far away to use thumb instructions.

Bug: 72619014
Test: build with Forrest
Merged-In: Ia09931e93a170ac58007f80da2d580bb9b9635a6
Change-Id: I2cbb652a9a8d908d9444a267e6d234b135c279b5
parent 73c39245
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@ cc_library_static {
        "-Wall",
        "-Werror",
    ],
    arch: {
        arm: {
            instruction_set: "arm",
        },
    },
    proto: {
        type: "lite",
        export_proto_headers: true,
+5 −0
Original line number Diff line number Diff line
@@ -51,6 +51,11 @@ cc_library {
        "-Wall",
        "-Werror",
    ],
    arch: {
        arm: {
            instruction_set: "arm",
        },
    },
    export_include_dirs: localIncludeFiles,
    static_libs: staticLibraries,
    shared_libs: sharedLibraries,
+5 −0
Original line number Diff line number Diff line
@@ -55,6 +55,11 @@ cc_library {
        "-Wno-unused-parameter",
        "-Wno-unused-variable",
    ],
    arch: {
        arm: {
            instruction_set: "arm",
        },
    },
    srcs: sourceFiles,
    export_include_dirs: includeFiles,
    export_static_lib_headers: staticLibraries,
+5 −0
Original line number Diff line number Diff line
@@ -52,6 +52,11 @@ headerLibraries = [
cc_library {
    tags: ["tests"],
    srcs: sourceFiles,
    arch: {
        arm: {
            instruction_set: "arm",
        },
    },
    cflags: ["-DLOG_TAG=\"libdisplay\"",
        "-DTRACE=0",
        "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
+5 −0
Original line number Diff line number Diff line
@@ -8,6 +8,11 @@ cc_library_static {
        "-DLOG_TAG=\"libpdx\"",
        "-DTRACE=0",
    ],
    arch: {
        arm: {
            instruction_set: "arm",
        },
    },
    export_include_dirs: ["private"],
    local_include_dirs: ["private"],
    srcs: [
Loading