diff options
author | William A. Kennington III <wak@google.com> | 2021-09-10 23:48:29 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2021-09-11 00:44:26 +0300 |
commit | 31ff6c42f09573a25a0583fe1e0badab93e0476e (patch) | |
tree | 81c557faadd5a6ff4b3c9cd7a834af1d1927fb62 | |
parent | 30c67e8ea8c8e4caf53ed54ff0dc5dd91960681c (diff) | |
download | openbmc-31ff6c42f09573a25a0583fe1e0badab93e0476e.tar.xz |
meta-google: protobuf: Enable LTO
We want to reduce the size of our target binaries, and LTO saves us
about 300K.
Change-Id: Id1fe52b48a16999385251ae927012ff3e494e2f3
Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r-- | meta-google/recipes-devtools/protobuf/protobuf_%.bbappend | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend b/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend new file mode 100644 index 0000000000..b709ea4cd7 --- /dev/null +++ b/meta-google/recipes-devtools/protobuf/protobuf_%.bbappend @@ -0,0 +1,3 @@ +# Reduces the size of the output binaries by ~300K +CFLAGS:append:class-target = " -flto" +CXXFLAGS:append:class-target = " -flto" |