move default backtrace setting to sys
This commit is contained in:
@@ -76,3 +76,12 @@ cfg_if::cfg_if! {
|
||||
pub mod c;
|
||||
}
|
||||
}
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
// Fuchsia components default to full backtrace.
|
||||
if #[cfg(target_os = "fuchsia")] {
|
||||
pub const BACKTRACE_DEFAULT: bool = true;
|
||||
} else {
|
||||
pub const BACKTRACE_DEFAULT: bool = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user