From 3af7e61537dd4ace216d01d9edd6afbca12bb793 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Thu, 20 Oct 2016 21:41:26 -0700 Subject: Update Android.bp to shrink executables Keep whole_static_libs for the main executable, but use static_libs for the rest. My goal is to check ckati_stamp_dump into Android as a prebuilt, and it goes from 2.4M->1.2M for the ASAN version, and 352K->11K for the normal version. --- Android.bp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Android.bp b/Android.bp index bd45daa..f95b366 100644 --- a/Android.bp +++ b/Android.bp @@ -73,7 +73,7 @@ cc_binary_host { name: "ckati_stamp_dump", defaults: ["ckati_defaults"], srcs: ["regen_dump.cc"], - whole_static_libs: ["libckati"], + static_libs: ["libckati"], } cc_test_host { @@ -88,7 +88,7 @@ cc_test_host { "strutil_test.cc", ], gtest: false, - whole_static_libs: ["libckati"], + static_libs: ["libckati"], } cc_benchmark_host { @@ -97,5 +97,5 @@ cc_benchmark_host { srcs: [ "fileutil_bench.cc", ], - whole_static_libs: ["libckati"], + static_libs: ["libckati"], } -- cgit v1.2.3