Skip to content

Commit d87bca9

Browse files
committed
override lto setting
cargo-show-asm relies on --emit to tell it which file was generated, In rustc past rust-lang/rust#103610 this no longer works even with -Ccodegen-units=1 This should not affect c-s-a's output since it wasn't looking at linker's optimization but might affect how compiled program performs.
1 parent 0036c93 commit d87bca9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ fn spawn_cargo(
103103
.args(["--emit", syntax.emit()])
104104
// So only one file gets created.
105105
.arg("-Ccodegen-units=1")
106+
.arg("-Clto=no")
106107
.args(syntax.format().iter().flat_map(|s| ["-C", s]))
107108
.args(target_cpu.iter().map(|cpu| format!("-Ctarget-cpu={cpu}")));
108109

0 commit comments

Comments
 (0)