We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b53c52b commit a6eb60fCopy full SHA for a6eb60f
crates/backtrace-sys/build.rs
@@ -91,9 +91,11 @@ fn main() {
91
92
// When we're built as part of the Rust compiler, this is used to enable
93
// debug information in libbacktrace itself.
94
- let any_debug = env::var("RUSTC_DEBUGINFO").unwrap_or_default() == "true"
95
- || env::var("RUSTC_DEBUGINFO_LINES").unwrap_or_default() == "true";
96
- build.debug(any_debug);
+ if cfg!(feature = "rustc-dep-of-std") {
+ let any_debug = env::var("RUSTC_DEBUGINFO").unwrap_or_default() == "true"
+ || env::var("RUSTC_DEBUGINFO_LINES").unwrap_or_default() == "true";
97
+ build.debug(any_debug);
98
+ }
99
100
let syms = [
101
"backtrace_full",
0 commit comments