diff --git a/compiler/erg_common/spawn.rs b/compiler/erg_common/spawn.rs index 49ae3954f..3860aa943 100644 --- a/compiler/erg_common/spawn.rs +++ b/compiler/erg_common/spawn.rs @@ -8,7 +8,7 @@ where F: FnOnce() -> T + Send + 'static, T: Send + 'static, { - #[cfg(feature = "debug")] + #[cfg(all(unix, feature = "debug"))] unsafe { backtrace_on_stack_overflow::enable() };