No need to probe backtrace if std is disabled

This commit is contained in:
David Tolnay 2019-11-27 16:06:49 -08:00
parent e7fd273754
commit 9060b6b754
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -35,6 +35,9 @@ const PROBE: &str = r#"
"#;
fn main() {
if !cfg!(feature = "std") {
return;
}
match compile_probe() {
Some(status) if status.success() => println!("cargo:rustc-cfg=backtrace"),
_ => {}