Skip to content

Commit eeaccee

Browse files
committed
[Backtracing] Fix a Windows build issue.
When backtracing is disabled, don't try to refer to `_swift_backtraceSettings`. rdar://117470489
1 parent d84c471 commit eeaccee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Errors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void swift::swift_reportError(uint32_t flags,
354354
const char *message) {
355355
#if defined(__APPLE__) && NDEBUG
356356
flags &= ~FatalErrorFlags::ReportBacktrace;
357-
#else
357+
#elif SWIFT_ENABLE_BACKTRACING
358358
// Disable fatalError backtraces if the backtracer is enabled
359359
if (runtime::backtrace::_swift_backtrace_isEnabled()) {
360360
flags &= ~FatalErrorFlags::ReportBacktrace;

0 commit comments

Comments
 (0)