Cargo.toml: strip symbols with the "chromeos" profile

ChromeOS binaries are stripped, so let's reflect this on the equivalent
profile.

BUG=None
TEST=`cargo build --profile chromeos` yields a stripped binary.

Change-Id: I0491e422f1ea6121aaeb6d08edaf9a9e42a9ee14
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3995886
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Alexandre Courbot 2022-11-01 14:43:56 +09:00 committed by crosvm LUCI
parent a0dcf8ab13
commit 0bea1ffe17

View file

@ -28,6 +28,7 @@ panic = 'unwind'
[profile.chromeos]
inherits = "release"
opt-level = "s"
strip = "symbols"
# Enables LTO to further reduce the size of the binary.
[profile.lto]