Skip to content

Commit

Permalink
logd: enable LTO
Browse files Browse the repository at this point in the history
Logd is self contained so LTO should be net beneficial.

Bug: 155322981
Test: logging unit tests
Change-Id: I7e26fcf15a7886ed537685d921428c679d7390f8
Signed-off-by: Jason Edson <jaysonedson@gmail.com>
  • Loading branch information
Tom Cherry authored and adithya2306 committed Sep 14, 2020
1 parent dbc46fc commit 6cf12cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions logd/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ cc_library_static {
export_include_dirs: ["."],

cflags: ["-Werror"] + event_flag,

lto: {
thin: true
}
}

cc_binary {
Expand All @@ -77,6 +81,10 @@ cc_binary {
],

cflags: ["-Werror"],

lto: {
thin: true
}
}

cc_binary {
Expand Down

0 comments on commit 6cf12cb

Please sign in to comment.