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

Commit 94574f27 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: run Forrest
Change-Id: Ia09931e93a170ac58007f80da2d580bb9b9635a6
parent 435adfa9
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
@@ -48,6 +48,11 @@ cc_library {
        "-Wall",
        "-Werror",
    ],
    arch: {
        arm: {
            instruction_set: "arm",
        },
    },
    export_include_dirs: localIncludeFiles,
    shared_libs: sharedLibraries,
    header_libs: headerLibraries,
+5 −0
Original line number Diff line number Diff line
@@ -53,6 +53,11 @@ cc_library_shared {
        "-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