Skip to content
Myr

No need to probe backtrace if std is disabled

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent e7fd273 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:build.rs+3 added
33 unmodified lines
34 }35"#;3637fn main() {38 if !cfg!(feature = "std") {39 return;40 }41 match compile_probe() {42 Some(status) if status.success() => println!("cargo:rustc-cfg=backtrace"),43 _ => {}44 }
18 unmodified lines