aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dan@danw.org>2016-10-20 21:41:26 -0700
committerGitHub <noreply@github.com>2016-10-20 21:41:26 -0700
commit3af7e61537dd4ace216d01d9edd6afbca12bb793 (patch)
tree4771dd6ac654bde57b50bec41a959d2a0afa8555
parentcbddec052bf068537d2c2a37b9af1c76d80cdd7c (diff)
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.
-rw-r--r--Android.bp6
1 files 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"],
}