Skip to content

Commit

Permalink
Merge pull request #270 from pacak/rc-0.2.34
Browse files Browse the repository at this point in the history
Release 0.2.34
  • Loading branch information
pacak authored Apr 25, 2024
2 parents 02d4e7f + 2f4e44c commit f2b808c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 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.33"
version = "0.2.34"
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.34] - 2024-04-25
- don't force debuginfo in llvm, fixes #269

## [0.2.33] - 2024-04-24
- Experimental support for disassembly, `cargo-show-asm` needs to be compiled with "disasm"
feature.
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ fn spawn_cargo(
.args(target_cpu.iter().map(|cpu| format!("-Ctarget-cpu={cpu}")));

{
if syntax.emit() == Some("asm") {
// None corresponds to disasm
if [Some("asm"), None].contains(&syntax.emit()) {
// Debug info is needed to detect function boundaries in asm (Windows/Mac), and to map asm/wasm
// output to rust source.
cmd.arg("-Cdebuginfo=2");
}
}
cmd.arg("-Cdebuginfo=2");

// current rust does not emit info about generated byproducts, new one will :)
if force_single_cgu {
Expand Down

0 comments on commit f2b808c

Please sign in to comment.