mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-10-02 15:26:08 +00:00
No need to probe backtrace if std is disabled
This commit is contained in:
parent
e7fd273754
commit
9060b6b754
3
build.rs
3
build.rs
@ -35,6 +35,9 @@ const PROBE: &str = r#"
|
|||||||
"#;
|
"#;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
if !cfg!(feature = "std") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
match compile_probe() {
|
match compile_probe() {
|
||||||
Some(status) if status.success() => println!("cargo:rustc-cfg=backtrace"),
|
Some(status) if status.success() => println!("cargo:rustc-cfg=backtrace"),
|
||||||
_ => {}
|
_ => {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user