diff options
author | Colin Cross <ccross@android.com> | 2018-10-18 11:05:56 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2018-10-18 18:07:44 +0000 |
commit | 3adb2ed734ac4465af9102b475c6cf8ecebe9734 (patch) | |
tree | c538f9762b24266704f80e3a32c902e3877ca79a /scripts | |
parent | 251178f024b95b4441aeb457a0a07d26e776bace (diff) | |
download | build_soong-3adb2ed734ac4465af9102b475c6cf8ecebe9734.tar.gz build_soong-3adb2ed734ac4465af9102b475c6cf8ecebe9734.tar.bz2 build_soong-3adb2ed734ac4465af9102b475c6cf8ecebe9734.zip |
Remove strip.sh intermediates
The intermediate files generated by strip.sh --keep-symbols can be
very large, and are not useful after the build. Remove them once
the final output file has been generated.
Saves ~6GB on an aosp_sailfish-userdebug build.
Test: m checkbuild
Change-Id: I0413f16ac5f423bc1b010cc9b8538f19bdea561e
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/strip.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/strip.sh b/scripts/strip.sh index 29594dce..4634c188 100755 --- a/scripts/strip.sh +++ b/scripts/strip.sh @@ -98,6 +98,7 @@ do_strip_keep_mini_debug_info() { else "${CROSS_COMPILE}objcopy" --add-section .gnu_debugdata="${outfile}.mini_debuginfo.xz" "${outfile}.tmp" fi + rm -f "${outfile}.dynsyms" "${outfile}.funcsyms" "${outfile}.keep_symbols" "${outfile}.debug" "${outfile}.mini_debuginfo" "${outfile}.mini_debuginfo.xz" else cp -f "${infile}" "${outfile}.tmp" fi |