Skip to content

Commit

Permalink
Merge pull request #365 from pacak/rc-0.2.47
Browse files Browse the repository at this point in the history
Release 0.2.47
  • Loading branch information
pacak authored Jan 21, 2025
2 parents 57a62b6 + 5eed884 commit abd6f20
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-show-asm"
version = "0.2.46"
version = "0.2.47"
edition = "2021"
description = "A cargo subcommand that displays the generated assembly of Rust source code."
categories = ["development-tools::cargo-plugins", "development-tools::debugging"]
Expand Down
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [0.2.47] - 2025-01-21
- don't try to override RUSTFLAGS unless needed - this should keep .config/cargo working (#364)

## [0.2.46] - 2025-01-15
- `--silent` flag can be used to suppress some of the user directed informatin
thanks @tgross35
Expand Down
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ fn spawn_cargo(
cmd.arg("-Ccodegen-units=1");
}

// `args` from `cargo rustc -- args` are passed only to the final compiler instance.
// `RUSTFLAGS` envvar is useful for passing flags to all compiler instances.
cmd.env("RUSTFLAGS", rust_flags.trim_start());
if !rust_flags.is_empty() {
// `args` from `cargo rustc -- args` are passed only to the final compiler instance.
// `RUSTFLAGS` envvar is useful for passing flags to all compiler instances.
cmd.env("RUSTFLAGS", rust_flags.trim_start());
}

if format.verbosity >= 2 {
safeprintln!("Running: {cmd:?}");
Expand Down

0 comments on commit abd6f20

Please sign in to comment.