From a04c74c5106f8f1c72d4f83a68b99bd7fc2acd4b Mon Sep 17 00:00:00 2001 From: Abhishek Pandit-Subedi Date: Thu, 1 Aug 2024 09:24:34 -0700 Subject: floss: Add support for running cargo-bloat In order to track how binary space is being used, add support for calling cargo bloat via build.py. See https://crates.io/crates/cargo-bloat for more informatio about the crate which needs to be installed on the host in order to run. Bug: 356808668 Test: mmm packages/modules/Bluetooth Change-Id: I637e7e3f48b38ad9982a43ecbe56e51afcf5431b --- floss/build/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'floss') diff --git a/floss/build/Dockerfile b/floss/build/Dockerfile index 2e0f3a3241..23ec4cbc07 100644 --- a/floss/build/Dockerfile +++ b/floss/build/Dockerfile @@ -67,7 +67,11 @@ RUN /tmp/rustup.sh -y --default-toolchain 1.77.1 ENV PATH="/root/.cargo/bin:${PATH}" # Install cargo packages required on build image. -RUN cargo install --locked cxxbridge-cmd@1.0.94 pdl-compiler@0.1.1 grpcio-compiler@0.13.0 +RUN cargo install --locked \ + cxxbridge-cmd@1.0.94 \ + pdl-compiler@0.1.1 \ + grpcio-compiler@0.13.0 \ + cargo-bloat@0.12.1 RUN cargo install --git https://android.googlesource.com/platform/build#8f9ca807 aconfig # Rename llvm packages. By default, they are named 11vm-ar-13, etc. which won't -- cgit v1.2.3-59-g8ed1b