mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-13 16:05:15 +00:00
460ba718d4
From Rust 1.59, the cargo command is now able to strip a binary [1]. This can be enabled in Cargo.toml by adding a `strip = "true"` to the `[profile.release]` section. Adding such binary stripping support in Cargo.toml of the project, also change the stripping process in the release workflow to the one using toolchain, so that the AArch64 release binaries can also be stripped. Fixes: https://github.com/cloud-hypervisor/cloud-hypervisor/issues/4916 [1] https://doc.rust-lang.org/beta/cargo/reference/profiles.html#strip Signed-off-by: Henry Wang <Henry.Wang@arm.com> (cherry picked from commit 1ff0191b305a91ee4c1c0bf2e5e8ac93207ca269) Signed-off-by: Bo Chen <chen.bo@intel.com>