android: more output size reduction

This should bring us finally under the 2G max. llvm directory was
missing from my last commit.
This commit is contained in:
Matthew Bauer 2018-06-22 19:06:11 -04:00
parent e1e9b197f9
commit 37aab4cbb5

View File

@ -56,9 +56,9 @@ stdenv.mkDerivation rec {
cd ${pkg_path}
# Steps to reduce output size
rm -rf ${pkg_path}/docs ${pkg_path}/sources ${pkg_path}/tests
rm -rf docs sources tests
# We only support cross compiling with gcc for now
rm -rf ${pkg_path}/toolchains/*-clang* ${pkg_path}/toolchains/llvm-*
rm -rf toolchains/*-clang* toolchains/llvm*
find ${pkg_path}/toolchains \( \
\( -type f -a -name "*.so*" \) -o \