diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2022-05-08 23:35:29 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2022-05-08 23:38:38 +0200 |
commit | 2868051801867a02bef4aa0a59071b5b6bdbffb9 (patch) | |
tree | ebae3464327e1194cc8fc55b7e294f192292a2e1 | |
parent | 446d4e0ce1a219c33a8aee83a704ab9c9d7dc812 (diff) | |
download | aports-2868051801867a02bef4aa0a59071b5b6bdbffb9.tar.gz aports-2868051801867a02bef4aa0a59071b5b6bdbffb9.tar.bz2 aports-2868051801867a02bef4aa0a59071b5b6bdbffb9.tar.xz |
community/cargo-edit: reduce binaries size
11.4 -> 7.1 MiB
-rw-r--r-- | community/cargo-edit/APKBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/community/cargo-edit/APKBUILD b/community/cargo-edit/APKBUILD index 02ce5ab19e..693a053acd 100644 --- a/community/cargo-edit/APKBUILD +++ b/community/cargo-edit/APKBUILD @@ -20,6 +20,11 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/killercup/cargo-edit/archive $pkgname-39c1d03-fix-test.patch::https://github.com/killercup/cargo-edit/commit/39c1d0381f81c8b35afbec7cd5daae9d2896c7da.patch " +export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 +export CARGO_PROFILE_RELEASE_LTO="true" +export CARGO_PROFILE_RELEASE_OPT_LEVEL="z" +export CARGO_PROFILE_RELEASE_PANIC="abort" + export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2 # Exclude vendored-libgit2 feature. |