From e2941522564b987caf01b7b7bbfb43a6e5fe3ab7 Mon Sep 17 00:00:00 2001 From: Blair Noctis Date: Fri, 17 Jan 2025 14:04:40 +0000 Subject: [PATCH] cargo wrapper: improve log messages --- debian/bin/cargo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/bin/cargo b/debian/bin/cargo index 1d71735377..f99d3fdb10 100755 --- a/debian/bin/cargo +++ b/debian/bin/cargo @@ -190,12 +190,12 @@ def main(*args): host_rust_type = os.getenv("DEB_HOST_RUST_TYPE", "") host_gnu_type = os.getenv("DEB_HOST_GNU_TYPE", "") - log("options, profiles, parallel, lto:", build_options, build_profiles, parallel, lto) - log("rust_type, gnu_type:", ", ".join([host_rust_type, host_gnu_type])) + log(f'options = {build_options}, profiles = {build_profiles}, parallel = {parallel}, lto = {lto}') + log(f'rust_type = {host_rust_type}, gnu_type = {host_gnu_type}') if "RUSTFLAGS" in os.environ: - # see https://github.com/rust-lang/cargo/issues/6338 for explanation on why we must do this - log("unsetting RUSTFLAGS and assuming it will be (or already was) added to $CARGO_HOME/config.toml") + # https://github.com/rust-lang/cargo/issues/6338 + log('unsetting RUSTFLAGS for rust-lang/cargo#6338; add them to .cargo/config.toml') extra_rustflags = os.environ["RUSTFLAGS"] del os.environ["RUSTFLAGS"] else: